結果
問題 |
No.2785 四乗足す四の末尾の0
|
ユーザー |
![]() |
提出日時 | 2025-03-18 21:03:11 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 402 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 81,952 KB |
実行使用メモリ | 71,336 KB |
最終ジャッジ日時 | 2025-03-18 21:03:14 |
合計ジャッジ時間 | 3,081 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 20 |
ソースコード
def main(): def test_case(N): print('Yes' if is_prime(N == 1 or N == -1) else 'No') ans = 0 for k in range(40): if (N**4 + 4) % (10**k) == 0: ans = k else: break print(ans) T = int(input()) for _ in range(T): N = int(input()) test_case(N) if __name__ == '__main__': main()