結果

問題 No.1972 Modulo Set
ユーザー FF256grhyFF256grhy
提出日時 2022-06-17 19:34:40
言語 cLay
(20240104-1)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 2,285 ms
コンパイル使用メモリ 182,556 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2024-04-17 10:36:14
合計ジャッジ時間 6,102 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 11 ms
5,376 KB
testcase_04 AC 17 ms
5,376 KB
testcase_05 AC 19 ms
5,376 KB
testcase_06 AC 35 ms
5,376 KB
testcase_07 AC 54 ms
5,632 KB
testcase_08 AC 20 ms
5,376 KB
testcase_09 AC 3 ms
5,376 KB
testcase_10 AC 18 ms
5,376 KB
testcase_11 AC 53 ms
5,632 KB
testcase_12 AC 9 ms
5,376 KB
testcase_13 AC 5 ms
5,376 KB
testcase_14 AC 6 ms
5,376 KB
testcase_15 AC 71 ms
7,040 KB
testcase_16 AC 84 ms
8,192 KB
testcase_17 AC 22 ms
5,376 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 64 ms
8,192 KB
testcase_20 AC 83 ms
8,960 KB
testcase_21 AC 29 ms
5,376 KB
testcase_22 AC 59 ms
7,680 KB
testcase_23 AC 132 ms
14,464 KB
testcase_24 AC 41 ms
7,936 KB
testcase_25 AC 69 ms
10,240 KB
testcase_26 AC 97 ms
7,936 KB
testcase_27 AC 147 ms
15,104 KB
testcase_28 AC 44 ms
8,064 KB
testcase_29 AC 77 ms
10,624 KB
testcase_30 AC 111 ms
13,056 KB
testcase_31 AC 5 ms
5,376 KB
testcase_32 AC 91 ms
12,160 KB
testcase_33 AC 162 ms
16,512 KB
testcase_34 AC 185 ms
16,512 KB
testcase_35 AC 178 ms
16,512 KB
testcase_36 AC 173 ms
16,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@m,@a[n],s=0;map<ll,ll>c;c[a[0..n-1]%=m]++;rep[a](e,n)s+=2e%m?(c[e]>?=c[m-e]):!!c[e],c[e]=c[m-e]=0;wt(s);
0