提交记录 12943
提交时间 |
评测时间 |
2020-07-05 21:23:32 |
2020-08-01 03:01:55 |
#include<stdio.h>
#include<stdlib.h>
#include<sys/mman.h>
int main(){
register char *_=(char*)malloc(999999);
register int n=0,s=0;
for(_=(char*)mmap(NULL,999991,PROT_READ,MAP_PRIVATE,fileno(stdin),0);*_<48||*_>57;++_);
for(;*_>47&&*_<58;++_)n=n*10+*_-48;
for(register int a,b;n;a=b,--n){
for(b=0;*_<48||*_>57;++_);for(;*_>47&&*_<58;++_)b=b*10+*_-48;
if(b>a)s+=b-a;
}
printf("%d",s);
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 4.54 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #2 | 5.65 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #3 | 6.27 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #4 | 5.02 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #5 | 5.05 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #6 | 4.81 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #7 | 5.08 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #8 | 4.84 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #9 | 5.02 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #10 | 4.95 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-04-26 19:36:54 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用