mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
update ui
This commit is contained in:
1 parent
42e534615e
commit
c2f9bf8c53
8 files changed
+50
-119
No files matched your search
@@ -27,73 +27,4 @@ One integer, the sum of x and y.
|
||||
# Limitation
|
||||
1s, 1024KiB for each test case.
|
||||
|
||||
# Hint
|
||||
|
||||
## Free Pascal Code
|
||||
|
||||
```pascal
|
||||
var a,b:longint;
|
||||
begin
|
||||
readln(a,b);
|
||||
writeln(a+b);
|
||||
end.
|
||||
```
|
||||
|
||||
## C Code
|
||||
|
||||
```c
|
||||
#include <stdio.h>
|
||||
int main(void)
|
||||
{
|
||||
int a, b;
|
||||
scanf("%d%d", &a, &b);
|
||||
printf("%d\n", a + b);
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
## C++ Code
|
||||
|
||||
```cpp
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a, b;
|
||||
cin >> a >> b;
|
||||
cout << a + b << endl;
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
## Python Code
|
||||
|
||||
```python
|
||||
a, b = [int(i) for i in raw_input().split()]
|
||||
print(a + b)
|
||||
```
|
||||
|
||||
## Java Code
|
||||
|
||||
```java
|
||||
import java.io.*;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Main {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
* @throws IOException
|
||||
*/
|
||||
public static void main(String[] args) throws IOException {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
int a = sc.nextInt();
|
||||
int b = sc.nextInt();
|
||||
System.out.println(a + b);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
# Source
|
||||
|
||||
**Vijos Original**
|
||||
Reference in new issue
Block a user