結果
問題 |
No.3156 Count That Day's N
|
ユーザー |
![]() |
提出日時 | 2025-05-28 04:43:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,490 ms / 3,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 559 ms |
コンパイル使用メモリ | 82,344 KB |
実行使用メモリ | 403,772 KB |
最終ジャッジ日時 | 2025-05-28 04:44:45 |
合計ジャッジ時間 | 51,815 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 32 |
ソースコード
K,N=map(int,input().split()) LIST=[] for x in range(1,500): for y in range(1,10000): LIST.append(x*x*x*x*x*x+y*y*y*y) ANS=0 for n in set(LIST): if n>N: continue if n%K==0: x=n//K sq=round(x**0.5) if sq*sq==x: ANS+=1 print(ANS)