提交记录 31418
| 提交时间 |
评测时间 |
| 2026-08-14 01:52:24 |
2026-08-14 01:52:27 |
#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;
memset(big, 1, dig * 4096);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 11.23 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #2 | 10.29 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #3 | 9.52 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #4 | 9.44 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #5 | 10.4 us | 20 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #6 | 17.61 us | 36 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #7 | 43.21 us | 84 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #8 | 343.95 us | 684 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #9 | 4.179 ms | 32 MB + 572 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #10 | 5.076 ms | 26 MB + 56 KB | Accepted | Score: 10 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-08-14 09:43:57 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠