QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#270567 | #7534. KPI Calculation | vxv | WA | 0ms | 3888kb | C++20 | 314b | 2023-12-01 09:45:23 | 2023-12-01 09:45:25 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
char s[102 << 10];
int main(){
int res = 0;
while(!feof(stdin)){
fgets(s, 101 << 10, stdin);
int t = -1;
for(int i=0; s[i] != '\n'; i++)
if(s[i] > ' '){
t = i;
break;
}
if(t != -1)res += t;
}
printf("%d\n",res);
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3788kb
input:
#include <cstdio> int main() { int a,b; scanf ("%d%d",&a,&b); printf ("%d\n",a+b); return 0; }
output:
10
result:
ok answer is '10'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
a b
output:
11
result:
ok answer is '11'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
output:
0
result:
ok answer is '0'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
output:
0
result:
ok answer is '0'
Test #5:
score: -100
Wrong Answer
time: 0ms
memory: 3888kb
input:
...
output:
186366
result:
wrong answer expected '93183', found '186366'