結果

問題 No.2785 四乗足す四の末尾の0
ユーザー ニックネーム
提出日時 2024-06-14 22:08:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 475 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 82,508 KB
実行使用メモリ 77,280 KB
最終ジャッジ日時 2024-06-14 22:08:47
合計ジャッジ時間 3,973 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    n = abs(int(input())); x = n**4+4; c = 0
    while x%10==0: x //= 10; c += 1
    print("Yes" if n==1 else "No"); print(c)
0