-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2162a12
commit 76e8c6d
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |