提交记录 12939
| 提交时间 |
评测时间 |
| 2020-07-05 21:06:35 |
2020-08-01 03:01:49 |
#include<bits/stdc++.h>
using namespace std;
char _[999999],*U,*V;
#define G (U==V?(V=(U=_)+fread(_,1,999991,stdin),*U++):*U++)
void in(int&x){char c=G;for(x=0;c<48||c>57;c=G);for(;c>47&&c<58;c=G)x=x*10+c-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 | 33.13 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 41.32 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 41.94 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 35.47 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #5 | 35.35 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #6 | 35.38 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #7 | 40.5 us | 44 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #8 | 107.34 us | 76 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #9 | 472.68 us | 280 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #10 | 912.52 us | 516 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-25 05:09:43 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠