結果
問題 | No.1666 累乗数 |
ユーザー | tails |
提出日時 | 2021-09-03 22:47:22 |
言語 | cLay (20240104-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 8,065 ms |
コンパイル使用メモリ | 215,124 KB |
実行使用メモリ | 11,164 KB |
最終ジャッジ日時 | 2023-09-19 02:37:56 |
合計ジャッジ時間 | 12,128 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
10,824 KB |
testcase_01 | AC | 148 ms
10,884 KB |
testcase_02 | AC | 149 ms
10,848 KB |
testcase_03 | AC | 149 ms
10,916 KB |
testcase_04 | AC | 150 ms
10,828 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
ソースコード
int moe[64]; ll g(ll p,ll m){ ll x=pow(m,1./p); while(x**p>m){ --x; } while((x+1)**p<=m){ ++x; } return x-1; } ll f(ll k){ ll lo=0,hi=1d18; while(lo+1<hi){ ll m=lo+hi>>1; ll c=1; rep(p,2,64){ c+=g(p,m)*moe[p]; } if(c<k){ lo=m; }else{ hi=m; } } return hi; } { rep(i,2,64){ moe[i]=-Moebius(i); } ll@t; rep(t){ ll@k; wt(f(k)); } }