結果

問題 No.1330 Multiply or Divide
ユーザー tailstails
提出日時 2021-01-13 19:16:18
言語 cLay
(20240104-1)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 1,776 ms
コンパイル使用メモリ 161,264 KB
実行使用メモリ 6,696 KB
最終ジャッジ日時 2023-09-19 02:02:46
合計ジャッジ時間 4,390 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,404 KB
testcase_01 AC 8 ms
6,456 KB
testcase_02 AC 2 ms
5,404 KB
testcase_03 AC 2 ms
5,560 KB
testcase_04 AC 2 ms
5,696 KB
testcase_05 AC 2 ms
5,412 KB
testcase_06 AC 9 ms
5,824 KB
testcase_07 AC 79 ms
6,408 KB
testcase_08 AC 13 ms
6,424 KB
testcase_09 AC 17 ms
6,696 KB
testcase_10 AC 13 ms
6,500 KB
testcase_11 AC 11 ms
6,380 KB
testcase_12 AC 13 ms
6,428 KB
testcase_13 AC 2 ms
5,396 KB
testcase_14 AC 2 ms
5,392 KB
testcase_15 AC 2 ms
5,352 KB
testcase_16 AC 2 ms
5,352 KB
testcase_17 AC 2 ms
5,448 KB
testcase_18 AC 9 ms
6,504 KB
testcase_19 AC 9 ms
6,580 KB
testcase_20 AC 9 ms
6,468 KB
testcase_21 AC 9 ms
6,416 KB
testcase_22 AC 9 ms
6,428 KB
testcase_23 AC 9 ms
6,696 KB
testcase_24 AC 2 ms
5,656 KB
testcase_25 AC 2 ms
5,476 KB
testcase_26 AC 2 ms
5,400 KB
testcase_27 AC 2 ms
5,600 KB
testcase_28 AC 2 ms
5,480 KB
testcase_29 AC 2 ms
5,508 KB
testcase_30 AC 2 ms
5,444 KB
testcase_31 AC 2 ms
5,412 KB
testcase_32 AC 2 ms
5,388 KB
testcase_33 AC 2 ms
5,484 KB
testcase_34 AC 7 ms
6,424 KB
testcase_35 AC 4 ms
5,836 KB
testcase_36 AC 7 ms
6,384 KB
testcase_37 AC 6 ms
6,412 KB
testcase_38 AC 5 ms
6,112 KB
testcase_39 AC 4 ms
5,872 KB
testcase_40 AC 4 ms
5,936 KB
testcase_41 AC 3 ms
5,676 KB
testcase_42 AC 6 ms
6,432 KB
testcase_43 AC 7 ms
6,428 KB
testcase_44 AC 9 ms
5,792 KB
testcase_45 AC 9 ms
5,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll d[2d5],f[2d5];
{
	ll@n,@m,@p,b=0,c=0,g=0;
	rep(i,n){
		ll@a,e=0;
		b>?=a;
		while(a%p<1){
			a/=p;
			++e;
		}
		g>?=e;
		c>?=a;
		f[e]>?=a;
	}
	i=-1;
	if(b>m|c>1){
		d[i=0]=b;
		while(d[i]<=m){
			rep(j,g+1){
				d[i+j+1]>?=d[i]*f[j];
			}
			++i;
		}
		++i;
	}
	wt(i);
}
0