結果

問題 No.2526 Kth Not-divisible Number
ユーザー tailstails
提出日時 2023-11-03 22:25:02
言語 cLay
(20240104-1)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 2,770 ms
コンパイル使用メモリ 173,608 KB
実行使用メモリ 5,448 KB
最終ジャッジ日時 2023-11-03 22:25:11
合計ジャッジ時間 4,663 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 54 ms
5,448 KB
testcase_04 AC 55 ms
5,448 KB
testcase_05 AC 55 ms
5,448 KB
testcase_06 AC 54 ms
5,448 KB
testcase_07 AC 54 ms
5,448 KB
testcase_08 AC 76 ms
5,448 KB
testcase_09 AC 171 ms
5,448 KB
testcase_10 AC 57 ms
5,448 KB
testcase_11 AC 24 ms
4,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@t;
rep(t){
	ll@a,@b,@k,c=lcm(a,b),d,z=k;
	while(d=z-z/a-z/b+z/c,d<k){
		z+=k-d;
	}
	wt(z);
}
0