結果

問題 No.1233 割り切れない気持ち
ユーザー tailstails
提出日時 2020-09-18 22:22:59
言語 cLay
(20240104-1)
結果
AC  
実行時間 2,073 ms / 3,153 ms
コード長 280 bytes
コンパイル時間 1,809 ms
コンパイル使用メモリ 160,504 KB
実行使用メモリ 8,156 KB
最終ジャッジ日時 2023-09-19 01:23:41
合計ジャッジ時間 67,149 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
6,904 KB
testcase_01 AC 4 ms
6,960 KB
testcase_02 AC 6 ms
7,068 KB
testcase_03 AC 15 ms
7,024 KB
testcase_04 AC 14 ms
6,936 KB
testcase_05 AC 5 ms
6,936 KB
testcase_06 AC 5 ms
6,920 KB
testcase_07 AC 534 ms
7,216 KB
testcase_08 AC 910 ms
7,536 KB
testcase_09 AC 1,672 ms
8,016 KB
testcase_10 AC 1,772 ms
7,968 KB
testcase_11 AC 477 ms
7,284 KB
testcase_12 AC 2,030 ms
7,988 KB
testcase_13 AC 2,034 ms
8,108 KB
testcase_14 AC 2,030 ms
8,044 KB
testcase_15 AC 2,036 ms
7,932 KB
testcase_16 AC 2,028 ms
8,024 KB
testcase_17 AC 2,008 ms
7,356 KB
testcase_18 AC 2,011 ms
8,048 KB
testcase_19 AC 2,014 ms
7,960 KB
testcase_20 AC 2,009 ms
7,420 KB
testcase_21 AC 2,011 ms
7,804 KB
testcase_22 AC 2,017 ms
7,736 KB
testcase_23 AC 2,016 ms
7,832 KB
testcase_24 AC 2,016 ms
7,780 KB
testcase_25 AC 2,015 ms
7,740 KB
testcase_26 AC 2,015 ms
7,724 KB
testcase_27 AC 2,068 ms
8,156 KB
testcase_28 AC 2,057 ms
7,916 KB
testcase_29 AC 2,057 ms
7,880 KB
testcase_30 AC 2,060 ms
8,140 KB
testcase_31 AC 2,055 ms
7,940 KB
testcase_32 AC 2,053 ms
7,892 KB
testcase_33 AC 2,073 ms
7,892 KB
testcase_34 AC 2,049 ms
7,884 KB
testcase_35 AC 2,048 ms
7,880 KB
testcase_36 AC 2,051 ms
7,876 KB
testcase_37 AC 4 ms
6,940 KB
testcase_38 AC 2,017 ms
7,300 KB
testcase_39 AC 2,021 ms
7,728 KB
testcase_40 AC 2,012 ms
7,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,s,t,z,a[2d5],b[1d3],c[3d5];

{
	rd(n,a(n));
	rep[a](x,n){
		rep(k,2,1d3){
			b[k]+=x%k;
		}
		c[x]+=1;
		s+=x;
	}
	c[1..2d5]+=c[0..];
	rep[a](x,n){
		if(x<1d3){
			z+=b[x];
		}else{
			z+=s;
			t=2d5/x*x;
			while(t){
				z-=x*(c[2d5]-c[t-1]);
				t-=x;
			}
		}
	}
	wt(z);
}
0