結果

問題 No.2449 square_permutation
ユーザー 👑 p-adicp-adic
提出日時 2023-09-01 07:19:42
言語 cLay
(20240104-1)
結果
AC  
実行時間 910 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 8,141 ms
コンパイル使用メモリ 214,528 KB
実行使用メモリ 14,060 KB
最終ジャッジ日時 2023-09-01 07:20:07
合計ジャッジ時間 24,035 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
10,496 KB
testcase_01 AC 8 ms
10,552 KB
testcase_02 AC 8 ms
10,492 KB
testcase_03 AC 9 ms
10,512 KB
testcase_04 AC 8 ms
10,508 KB
testcase_05 AC 8 ms
10,520 KB
testcase_06 AC 160 ms
11,932 KB
testcase_07 AC 192 ms
12,072 KB
testcase_08 AC 262 ms
12,180 KB
testcase_09 AC 286 ms
12,468 KB
testcase_10 AC 466 ms
13,084 KB
testcase_11 AC 522 ms
13,308 KB
testcase_12 AC 607 ms
13,304 KB
testcase_13 AC 882 ms
13,856 KB
testcase_14 AC 896 ms
13,904 KB
testcase_15 AC 865 ms
14,060 KB
testcase_16 AC 880 ms
13,864 KB
testcase_17 AC 868 ms
13,828 KB
testcase_18 AC 734 ms
13,660 KB
testcase_19 AC 885 ms
13,856 KB
testcase_20 AC 876 ms
13,880 KB
testcase_21 AC 872 ms
13,824 KB
testcase_22 AC 9 ms
10,716 KB
testcase_23 AC 910 ms
13,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,k,r,f[9],e[9],b[N+1]={};REP(i,N){k=1;REP(m,Factor(i+1,f,e))if(e[m]%2)k*=f[m];RREP(j,1,N/k+1)if(!b[k*j]&&j==r*(r=sqrt(j))){b[k*j]=1;wtSp(k*j);break;}}
0