提交记录 12932
提交时间 |
评测时间 |
2020-07-05 20:56:12 |
2020-08-01 03:01:40 |
#include<stdio.h>
#include<sys/mman.h>
char *_=(char*)mmap(NULL,999999999,PROT_READ,MAP_PRIVATE,fileno(stdin),0);
void in(int&x){for(x=0;*_<48||*_>57;++_);for(;*_>47&&*_<58;++_)x=x*10+*_-48;}
int main(){
int n,a,b,s=0;
for(in(n);n--;a=b)if(in(b),b>a)s+=b-a;
printf("%d",s);
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 5.09 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #2 | 5.73 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #3 | 6.14 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #4 | 5.34 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #5 | 5.47 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #6 | 5.24 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #7 | 5.07 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #8 | 4.51 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #9 | 4.93 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #10 | 4.53 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-04-26 13:02:34 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用