結果

問題 No.1233 割り切れない気持ち
ユーザー tailstails
提出日時 2020-09-20 00:24:07
言語 cLay
(20231016-1)
結果
AC  
実行時間 15 ms / 3,153 ms
コード長 169 bytes
コンパイル時間 2,152 ms
コンパイル使用メモリ 159,316 KB
実行使用メモリ 9,184 KB
最終ジャッジ日時 2023-09-19 01:19:51
合計ジャッジ時間 7,498 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
6,996 KB
testcase_01 AC 8 ms
6,908 KB
testcase_02 AC 8 ms
6,984 KB
testcase_03 AC 8 ms
6,896 KB
testcase_04 AC 8 ms
6,996 KB
testcase_05 AC 8 ms
6,896 KB
testcase_06 AC 8 ms
7,008 KB
testcase_07 AC 8 ms
7,368 KB
testcase_08 AC 10 ms
7,668 KB
testcase_09 AC 12 ms
8,764 KB
testcase_10 AC 13 ms
8,864 KB
testcase_11 AC 8 ms
7,284 KB
testcase_12 AC 14 ms
9,112 KB
testcase_13 AC 13 ms
9,184 KB
testcase_14 AC 14 ms
9,108 KB
testcase_15 AC 13 ms
9,120 KB
testcase_16 AC 15 ms
9,044 KB
testcase_17 AC 9 ms
6,956 KB
testcase_18 AC 12 ms
9,052 KB
testcase_19 AC 12 ms
7,544 KB
testcase_20 AC 9 ms
6,936 KB
testcase_21 AC 10 ms
7,296 KB
testcase_22 AC 10 ms
7,424 KB
testcase_23 AC 9 ms
7,288 KB
testcase_24 AC 10 ms
7,320 KB
testcase_25 AC 10 ms
7,288 KB
testcase_26 AC 9 ms
7,356 KB
testcase_27 AC 10 ms
8,272 KB
testcase_28 AC 10 ms
8,208 KB
testcase_29 AC 10 ms
8,224 KB
testcase_30 AC 10 ms
8,152 KB
testcase_31 AC 10 ms
8,148 KB
testcase_32 AC 10 ms
7,992 KB
testcase_33 AC 10 ms
7,988 KB
testcase_34 AC 10 ms
7,964 KB
testcase_35 AC 10 ms
8,132 KB
testcase_36 AC 10 ms
7,872 KB
testcase_37 AC 7 ms
6,908 KB
testcase_38 AC 9 ms
6,904 KB
testcase_39 AC 10 ms
9,016 KB
testcase_40 AC 10 ms
8,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,u,z,a,b[3d5],c[3d5];
{
	rd(n);
	rep(n)rd(a),++c[a],z+=a;
	z*=n;
	rrep(a,1,2d5+1){
		b[a]=b[a+1]+c[a];
		u=0;
		rep(t,a,2d5+1,a)u-=b[t];
		z+=u*a*c[a];
	}
	wt(z);
}
0