ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#201076 | #1. A+B Problem | pipibob | 100 | 0ms | 1148kb | C++ | 632b | 2024-01-20 19:41:16 | 2024-01-20 19:41:18 |
answer
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int a, b, c;
int read()
{
int x = 0, f = 1;
char ch = getchar();
while(ch < '0' || ch > '9')
{
if(ch == '-')
f = -1;
ch = getchar();
}
while(ch >= '0' && ch <= '9')
{
x = (x << 3) + (x << 1) + (ch ^ 48);
ch = getchar();
}
return x * f;
}
int main()
{
#ifndef ONLINE_JUDGE
// freopen("输入.in","r",stdin);
// freopen("输出.out","w",stdout);
#endif
a = read(), b = read();
c = a + b;
printf("%d\n",c);
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 10
Accepted
time: 0ms
memory: 1148kb
input:
23 24
output:
47
result:
ok single line: '47'
Test #2:
score: 10
Accepted
time: 0ms
memory: 1144kb
input:
233 1
output:
234
result:
ok single line: '234'
Test #3:
score: 10
Accepted
time: 0ms
memory: 1144kb
input:
222 333
output:
555
result:
ok single line: '555'
Test #4:
score: 10
Accepted
time: 0ms
memory: 1148kb
input:
1 333
output:
334
result:
ok single line: '334'
Test #5:
score: 10
Accepted
time: 0ms
memory: 1148kb
input:
222 333
output:
555
result:
ok single line: '555'
Test #6:
score: 10
Accepted
time: 0ms
memory: 1144kb
input:
242 333
output:
575
result:
ok single line: '575'
Test #7:
score: 10
Accepted
time: 0ms
memory: 1148kb
input:
222 3330
output:
3552
result:
ok single line: '3552'
Test #8:
score: 10
Accepted
time: 0ms
memory: 1144kb
input:
2220 333
output:
2553
result:
ok single line: '2553'
Test #9:
score: 10
Accepted
time: 0ms
memory: 1148kb
input:
222 555
output:
777
result:
ok single line: '777'
Test #10:
score: 10
Accepted
time: 0ms
memory: 1144kb
input:
222 3333
output:
3555
result:
ok single line: '3555'
Extra Test:
score: 0
Extra Test Passed