結果

問題 No.1972 Modulo Set
ユーザー FF256grhyFF256grhy
提出日時 2022-06-17 19:34:40
言語 cLay
(20231016-1)
結果
AC  
実行時間 247 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 1,953 ms
コンパイル使用メモリ 170,540 KB
実行使用メモリ 16,608 KB
最終ジャッジ日時 2023-07-30 09:07:23
合計ジャッジ時間 10,001 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 12 ms
4,376 KB
testcase_04 AC 18 ms
4,380 KB
testcase_05 AC 19 ms
4,380 KB
testcase_06 AC 34 ms
4,856 KB
testcase_07 AC 53 ms
5,516 KB
testcase_08 AC 20 ms
4,376 KB
testcase_09 AC 3 ms
4,376 KB
testcase_10 AC 17 ms
4,376 KB
testcase_11 AC 53 ms
5,536 KB
testcase_12 AC 9 ms
4,380 KB
testcase_13 AC 5 ms
4,380 KB
testcase_14 AC 5 ms
4,376 KB
testcase_15 AC 74 ms
7,012 KB
testcase_16 AC 93 ms
8,388 KB
testcase_17 AC 24 ms
4,976 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 78 ms
8,252 KB
testcase_20 AC 104 ms
8,848 KB
testcase_21 AC 31 ms
5,228 KB
testcase_22 AC 65 ms
7,728 KB
testcase_23 AC 191 ms
14,496 KB
testcase_24 AC 50 ms
8,024 KB
testcase_25 AC 93 ms
10,324 KB
testcase_26 AC 114 ms
7,800 KB
testcase_27 AC 202 ms
15,108 KB
testcase_28 AC 52 ms
8,124 KB
testcase_29 AC 90 ms
10,508 KB
testcase_30 AC 146 ms
13,392 KB
testcase_31 AC 5 ms
4,376 KB
testcase_32 AC 127 ms
12,388 KB
testcase_33 AC 247 ms
16,608 KB
testcase_34 AC 240 ms
16,448 KB
testcase_35 AC 241 ms
16,540 KB
testcase_36 AC 241 ms
16,448 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