A
Anonymous
19 марта 2021 г. 13:54
A
Anonymous
18 февраля 2021 г. 19:21

<script>
$(document).ready(function () {
    $(document).on('click', '[data-elem-id="1605859307264"] a', function (e) {
        var url = $(this).attr('href');
        e.preventDefault();
       
A
Anonymous
13 февраля 2021 г. 19:24

string = input()
 
res = 0
for letter in string:
    res += int(letter)
 
print(res)
A
Anonymous
8 февраля 2021 г. 23:44

from turtle import *

# Создаём переменные, которые будут хранить цвета
# и менять их в зависимости от времени суток
car_color = "green"
star_color = "yellow"

# создаём функцию, которая будет 
A
Anonymous
1 февраля 2021 г. 20:11

&lt;?php

class Stack
{
	const LIMIT = 100;
	
	private array $stack;

	public function __construct()
	{
		$this-&gt;stack = [];
	}
	
	public function addElem(int $elem): void
	{
		if (c
A
Anonymous
30 января 2021 г. 20:29

import pygame
from game.tilemap import *


class Block(pygame.sprite.Sprite):
    def __init__(self, image, x, y):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.image.
A
Anonymous
30 января 2021 г. 13:41

#include <cmath>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>

using namespace std;

int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int a1 = a * 
BlinCT
28 января 2021 г. 2:24

ListView
    {
        id: tableView

        anchors.top:  headers ? rowHeader.bottom : root.top
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: p
A
Anonymous
23 января 2021 г. 19:35

import pygame
import time
import os

pygame.init()

clock = pygame.time.Clock()
autog = 0
coins = 0
display_width = 850
display_height = 600

white = (255, 255, 255)
black = (0, 0, 0)
gr
A
Anonymous
16 января 2021 г. 20:39

import pygame


class Street(pygame.sprite.Sprite):

    def __init__(self, color, x, y):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.Surface((BLOCK_SIZE, BLOCK_SIZE
A
Anonymous
15 января 2021 г. 22:11

import random


class Player:

    def __init__(self, name, money, position):
        self.name = name
        self.money = money
        self.position = position
        self.street = 0
   
A
Anonymous
6 декабря 2020 г. 0:10

import socket
import threading
import tkinter as tk
from tkinter import scrolledtext


def registration():
    # Создаём надпись и крепим в 1 строку, 1 столбец
    tk.Label(mainWindow, text='В
A
Anonymous
27 ноября 2020 г. 23:48
A
Anonymous
26 ноября 2020 г. 23:51
M
9 ноября 2020 г. 3:58

#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

double function(double u,double t){
	if (u > 1)return u + t;
	if (0 <= u <= 1)return u - t;
	if (u < 0)return t - 
M
28 октября 2020 г. 23:22

#include <iostream>
#include <cmath>
#include<iomanip>
using namespace std;
void func1()
{
	int height, masa, w;
	cout << "Введiть ваш зрiст:";
	cin >> height;
	cout << "Вкажiть вашу стать(0-
M
23 октября 2020 г. 14:06

using namespace std;
bool prime(long int i)
{
	for (long int x = 2; x <= sqrt(i); x++)
	{
		if (i%x == 0)return false;
	}
		return true;
	
}
int main()
{
do {
		setlocale(LC_ALL, "ukr");
BlinCT
22 октября 2020 г. 23:46

int main(int argc, char** argv)
{
    int line = 0;

    if (argc > 1)
    {
        char* key = "-d";
        char* keyArg = argv[1];

        if (keyArg == key)
        {
            int 
M
14 октября 2020 г. 17:38

#include <iostream>
using namespace std;


int main()
{

	double x, y;
	cout << "Input x\n";
	cin >> x;
	cout << "Input y\n";
	cin >> y;
	double a = 4-2*x;
	double b = -5+2*x+y;
	double 
M
14 октября 2020 г. 0:13

#include <iostream>
using namespace std;


int main()
{

	double x, y, Ax = 2, Ay = -1, Bx = 2, By = 1, Cx = 3, Cy = -1;
	cout << "Input x\n";
	cin >> x;
	cout << "Input y\n";
	cin >> y;