結果
| 問題 | No.2785 四乗足す四の末尾の0 |
| コンテスト | |
| ユーザー |
inksamurai
|
| 提出日時 | 2024-06-18 23:37:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 81,876 KB |
| 実行使用メモリ | 84,456 KB |
| 最終ジャッジ日時 | 2024-06-18 23:37:44 |
| 合計ジャッジ時間 | 6,158 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 TLE * 1 -- * 4 |
ソースコード
t=int(input())
for _ in range(t):
n=int(input())
if abs(n)==1:
print('Yes')
else:
print('No')
x=abs(n)
ans=0
for i in range(36):
p=10**i
y=1
for j in range(4):
y*=x
y%=p
y+=4
if y%p==0:
ans=i
print(ans)
inksamurai