結果
| 問題 | No.2785 四乗足す四の末尾の0 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-14 22:23:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 96,088 KB |
| 実行使用メモリ | 82,816 KB |
| 最終ジャッジ日時 | 2026-07-26 12:30:47 |
| 合計ジャッジ時間 | 5,335 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 TLE * 1 -- * 6 |
ソースコード
def is_prime(i):
if i<=1:return False
for j in range(2,int(i**0.5)+1):
if i%j==0:return False
return True
T=int(input())
for _ in range(T):
N=int(input())
n=N**4+4
if is_prime(n):print("Yes")
else:print("No")
cnt=0
while n%10==0:
cnt+=1
n//=10
print(cnt)