結果
問題 | No.1250 汝は倍数なりや? |
ユーザー |
![]() |
提出日時 | 2020-10-30 15:09:42 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 5 ms / 1,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 216 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-21 22:50:22 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
コンパイルメッセージ
main.c:7:1: warning: return type defaults to 'int' [-Wimplicit-int] 7 | main(){ | ^~~~ main.c: In function 'main': main.c:17:9: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] 17 | write(1,"NO YES"+(x?0:3),3); | ^~~~~ main.c:18:9: warning: implicit declaration of function '_exit'; did you mean '_Exit'? [-Wimplicit-function-declaration] 18 | _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;}main(){char*rp=mmap(0l,2400l<<10,1,2,0,0ll);while(*rp++!=32);RD(h);long x=1;do {rp+=*rp==45;RD(a);x=x*a%h;}while(*rp);write(1,"NO YES"+(x?0:3),3);_exit(0);}