結果
問題 |
No.2785 四乗足す四の末尾の0
|
ユーザー |
|
提出日時 | 2024-06-14 23:10:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 488 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 82,364 KB |
実行使用メモリ | 77,184 KB |
最終ジャッジ日時 | 2024-06-14 23:10:15 |
合計ジャッジ時間 | 4,748 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
t = int(input()) for _ in range(t): n = int(input()) if abs(n) == 1: print("Yes") else: print("No") num = n**4 + 4 count = 0 while num%10 == 0: num //= 10 count += 1 print(count)