結果

問題 No.1972 Modulo Set
ユーザー tailstails
提出日時 2022-06-10 21:39:44
言語 cLay
(20240104-1)
結果
AC  
実行時間 227 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 2,810 ms
コンパイル使用メモリ 181,384 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2024-04-15 08:48:37
合計ジャッジ時間 6,648 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,248 KB
testcase_02 AC 1 ms
5,248 KB
testcase_03 AC 13 ms
5,376 KB
testcase_04 AC 18 ms
5,376 KB
testcase_05 AC 20 ms
5,376 KB
testcase_06 AC 34 ms
5,376 KB
testcase_07 AC 54 ms
5,632 KB
testcase_08 AC 19 ms
5,376 KB
testcase_09 AC 3 ms
5,376 KB
testcase_10 AC 17 ms
5,376 KB
testcase_11 AC 53 ms
5,760 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 72 ms
7,040 KB
testcase_16 AC 88 ms
8,320 KB
testcase_17 AC 24 ms
5,376 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 69 ms
8,064 KB
testcase_20 AC 91 ms
8,832 KB
testcase_21 AC 29 ms
5,376 KB
testcase_22 AC 57 ms
7,680 KB
testcase_23 AC 167 ms
14,592 KB
testcase_24 AC 46 ms
7,936 KB
testcase_25 AC 81 ms
10,240 KB
testcase_26 AC 107 ms
7,808 KB
testcase_27 AC 185 ms
15,232 KB
testcase_28 AC 45 ms
8,064 KB
testcase_29 AC 80 ms
10,624 KB
testcase_30 AC 132 ms
13,056 KB
testcase_31 AC 5 ms
5,376 KB
testcase_32 AC 116 ms
12,160 KB
testcase_33 AC 221 ms
16,640 KB
testcase_34 AC 213 ms
16,640 KB
testcase_35 AC 216 ms
16,512 KB
testcase_36 AC 227 ms
16,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

map<ll,ll>b;
ll@n,@m,@a[n],z=0;
rep(i,n)++b[a[i]%=m];
rep[a](x,n)
	z+=x*2%m?max(b[x],b[m-x]):!!b[x],
	b[x]=b[m-x]=0;
wt(z);
0