提交记录 12931


用户 题目 状态 得分 用时 内存 语言 代码长度
panyf noip18a. 【NOIP2018】铺设道路 Compile Error 0 0 ns 0 KB C++11 290 B
提交时间 评测时间
2020-07-05 20:55:29 2020-08-01 03:01:01
#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(n=in();n--;a=b)if(in(b),b>a)s+=b-a;
	printf("%d",s);
	return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-27 09:44:15 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用