結果
| 問題 | No.3156 Count That Day's N |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-14 13:49:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 878 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,452 KB |
| 最終ジャッジ日時 | 2026-05-14 13:49:30 |
| 合計ジャッジ時間 | 5,869 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 TLE * 1 -- * 1 |
| other | -- * 32 |
ソースコード
import math
K, N = map(int, input().split())
L = []
for n in range(1, N + 1):
if n % K ==0:
z = math.sqrt(n / K)
x = n ** (1/6)
y = n ** (1/4)
if z ** 2 * K == x ** 6 + y ** 4:
L.append(n)
print(L)