結果

問題 No.14 最小公倍数ソート
ユーザー tailstails
提出日時 2020-09-29 21:21:03
言語 cLay
(20240104-1)
結果
AC  
実行時間 4,751 ms / 5,000 ms
コード長 106 bytes
コンパイル時間 1,862 ms
コンパイル使用メモリ 164,020 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-19 01:29:34
合計ジャッジ時間 54,558 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,384 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 50 ms
4,380 KB
testcase_04 AC 4,751 ms
4,384 KB
testcase_05 AC 1,595 ms
4,376 KB
testcase_06 AC 1,864 ms
4,376 KB
testcase_07 AC 2,428 ms
4,380 KB
testcase_08 AC 3,249 ms
4,380 KB
testcase_09 AC 4,337 ms
4,380 KB
testcase_10 AC 4,265 ms
4,376 KB
testcase_11 AC 4,421 ms
4,376 KB
testcase_12 AC 4,555 ms
4,376 KB
testcase_13 AC 4,603 ms
4,380 KB
testcase_14 AC 4,470 ms
4,376 KB
testcase_15 AC 4,615 ms
4,380 KB
testcase_16 AC 1,712 ms
4,380 KB
testcase_17 AC 1,223 ms
4,376 KB
testcase_18 AC 543 ms
4,380 KB
testcase_19 AC 2,892 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int n,a[1d5];{rd(n,a(n));rep(i,n-1)swap(a[i+1],a[argmin[j=i+1---n-1](lcm(a[i],a[j])*1e4+a[j])]);wt(a(n));}
0