結果

問題 No.2449 square_permutation
ユーザー 👑 p-adicp-adic
提出日時 2023-08-31 21:50:17
言語 cLay
(20240104-1)
結果
AC  
実行時間 887 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 6,917 ms
コンパイル使用メモリ 213,856 KB
実行使用メモリ 12,084 KB
最終ジャッジ日時 2023-08-31 21:50:39
合計ジャッジ時間 21,011 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
10,756 KB
testcase_01 AC 10 ms
10,676 KB
testcase_02 AC 10 ms
10,540 KB
testcase_03 AC 11 ms
10,520 KB
testcase_04 AC 11 ms
10,496 KB
testcase_05 AC 11 ms
10,500 KB
testcase_06 AC 174 ms
11,176 KB
testcase_07 AC 201 ms
11,264 KB
testcase_08 AC 235 ms
11,356 KB
testcase_09 AC 289 ms
11,512 KB
testcase_10 AC 479 ms
11,720 KB
testcase_11 AC 530 ms
11,744 KB
testcase_12 AC 607 ms
11,736 KB
testcase_13 AC 879 ms
11,856 KB
testcase_14 AC 850 ms
11,996 KB
testcase_15 AC 860 ms
11,832 KB
testcase_16 AC 881 ms
11,832 KB
testcase_17 AC 885 ms
11,824 KB
testcase_18 AC 738 ms
11,824 KB
testcase_19 AC 842 ms
11,800 KB
testcase_20 AC 887 ms
11,832 KB
testcase_21 AC 881 ms
12,084 KB
testcase_22 AC 10 ms
10,608 KB
testcase_23 AC 862 ms
11,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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