結果
問題 | No.1205 Eye Drops |
ユーザー |
![]() |
提出日時 | 2020-11-05 15:41:00 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 430 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 11:12:08 |
合計ジャッジ時間 | 1,517 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
コンパイルメッセージ
main.c:8:1: warning: return type defaults to 'int' [-Wimplicit-int] 8 | main(){ | ^~~~ main.c: In function 'main': main.c:16:25: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] 16 | write(1,"No",2); | ^~~~~ main.c:17:25: warning: implicit declaration of function '_exit'; did you mean '_Exit'? [-Wimplicit-function-declaration] 17 | _exit(0); | ^~~~~ | _Exit
ソースコード
#pragma GCC optimize("Ofast") #pragma GCC target("avx2") char*mmap(); #define RD(v) int v=0;{int c;while(c=*rp++-48,c>=0)v=v*10+c;} #define RDL(v) long v=0;{int c;while(c=*rp++-48,c>=0)v=v*10+c;} main(){ char*rp=mmap(0l,12l*200002,1,2,0,0ll); while(*rp++!=10); long x=0,y=0; do{ RDL(t);RDL(p); y-=p; if((y>=0?y:-y)>t-x){ write(1,"No",2); _exit(0); } x=t; y=p; }while(*rp); write(1,"Yes",3); _exit(0); }