提交记录 9488


用户 题目 状态 得分 用时 内存 语言 代码长度
C20211711 noip18a. 【NOIP2018】铺设道路 Accepted 100 2.834 ms 404 KB C++11 215 B
提交时间 评测时间
2019-05-25 11:48:32 2020-08-01 01:38:46
#include<cstdio>
#define doit scanf("%d",&n);for(int i=1;i<=n;i++)scanf("%d",&a[i]);for(int i=2;i<=n;i++)if(a[i]>a[i-1])ans+=a[i]-a[i-1];printf("%d",ans+a[1]);return 0;
int n,a[100005],ans=0;
int main() {
    doit
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #18.68 us20 KBAcceptedScore: 10

Testcase #211.96 us20 KBAcceptedScore: 10

Testcase #311.98 us20 KBAcceptedScore: 10

Testcase #49.6 us20 KBAcceptedScore: 10

Testcase #511.34 us20 KBAcceptedScore: 10

Testcase #616.69 us20 KBAcceptedScore: 10

Testcase #736.94 us24 KBAcceptedScore: 10

Testcase #8285.53 us56 KBAcceptedScore: 10

Testcase #91.421 ms216 KBAcceptedScore: 10

Testcase #102.834 ms404 KBAcceptedScore: 10


Judge Duck Online | 评测鸭在线
Server Time: 2024-12-05 10:27:28 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠