Skip to content

Commit

Permalink
added A problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanchenko committed Apr 10, 2022
1 parent 2162a12 commit 76e8c6d
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
13 changes: 13 additions & 0 deletions A/cpp/code.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <iostream>

using namespace std;

int GetSum(int a, int b) {
// Здесь реализация вашего решения
}

int main() {
int a, b;
cin >> a >> b;
cout << GetSum(a, b);
}
16 changes: 16 additions & 0 deletions A/java/Solution.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import java.util.Scanner;

public class Solution {

private static int getSum(int a, int b) {
// Ваше решение
}

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
System.out.println(getSum(a, b));
scanner.close();
}
}
34 changes: 34 additions & 0 deletions A/js/code.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const _readline = require('readline');

const _reader = _readline.createInterface({
input: process.stdin
});

const _inputLines = [];
let _curLine = 0;

// Установим callback на считывание строки - так мы получим
// все строки из ввода в массиве _inputLines.
_reader.on('line', line => {
_inputLines.push(line);
});

process.stdin.on('end', solve);


// Функция парсит число из очередной строки массива _inputLines
// и сдвигает указатель на единицу вперёд.
function readNumber() {
return Number(_inputLines[_curLine++]);
}

function getSum(a, b) {
// Ваше решение
}

function solve() {
const a = readNumber();
const b = readNumber();

console.log(getSum(a, b));
}
13 changes: 13 additions & 0 deletions A/python/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from typing import Tuple

def get_sum(a: int, b: int) -> int:
# Здесь реализация вашего решения
pass

def read_input() -> Tuple[int, int]:
a = int(input())
b = int(input())
return a, b

a, b = read_input()
print(get_sum(a, b))

0 comments on commit 76e8c6d

Please sign in to comment.