結果

問題 No.2260 Adic Sum
ユーザー tailstails
提出日時 2023-04-07 21:37:17
言語 cLay
(20240104-1)
結果
AC  
実行時間 1,974 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 3,242 ms
コンパイル使用メモリ 178,092 KB
実行使用メモリ 88,832 KB
最終ジャッジ日時 2024-04-15 23:48:58
合計ジャッジ時間 12,888 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 3 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 AC 3 ms
5,376 KB
testcase_13 AC 3 ms
5,376 KB
testcase_14 AC 17 ms
6,272 KB
testcase_15 AC 25 ms
7,424 KB
testcase_16 AC 15 ms
5,888 KB
testcase_17 AC 26 ms
7,808 KB
testcase_18 AC 1,005 ms
52,992 KB
testcase_19 AC 1,104 ms
56,320 KB
testcase_20 AC 635 ms
38,144 KB
testcase_21 AC 644 ms
38,528 KB
testcase_22 AC 506 ms
32,896 KB
testcase_23 AC 259 ms
21,248 KB
testcase_24 AC 1,030 ms
51,712 KB
testcase_25 AC 44 ms
9,984 KB
testcase_26 AC 43 ms
9,856 KB
testcase_27 AC 46 ms
10,496 KB
testcase_28 AC 43 ms
9,984 KB
testcase_29 AC 44 ms
10,240 KB
testcase_30 AC 47 ms
8,192 KB
testcase_31 AC 159 ms
12,544 KB
testcase_32 AC 164 ms
12,544 KB
testcase_33 AC 42 ms
11,008 KB
testcase_34 AC 196 ms
31,104 KB
testcase_35 AC 1,974 ms
88,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@p,m=0,z=0,w[32];
if(1){
	ll v=1;
	while(v*=p,v<1d9){
		w[m++]=v;
	}
}
map<ll,ll>amap[32];
rep(n){
	ll@a;
	rep(j,m){
		z+=amap[j][a%w[j]]++;
	}
}
wt(z);
0