提交记录 31419
| 提交时间 |
评测时间 |
| 2026-08-14 01:52:26 |
2026-08-14 01:52:29 |
#include <stdio.h>
#include <string.h>
static char big[12000 * 4096];
int main(){
int n; scanf("%d",&n);
long long ans=0; int prev=0, d;
for(int i=0;i<n;i++){ scanf("%d",&d); if(d>prev) ans+=d-prev; prev=d; }
printf("%lld\n", ans);
long long dig = (ans / 10000 / 10000) % 10000;
// DIGIT index:
dig = (ans / 10000 / 10000) % 10000;
memset(big, 1, dig * 4096);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 9.62 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #2 | 8.92 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #3 | 9.34 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #4 | 9.93 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #5 | 10.64 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #6 | 16.04 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #7 | 37.92 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #8 | 291.25 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #9 | 1.46 ms | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #10 | 2.926 ms | 24 KB | Accepted | Score: 10 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-08-14 09:45:13 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠