結果
| 問題 | No.2785 四乗足す四の末尾の0 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-14 22:23:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2024-06-14 22:24:01 |
| 合計ジャッジ時間 | 4,487 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)