結果

問題 No.3029 オイラー標数
ユーザー gew1fw
提出日時 2025-06-12 13:52:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 82,484 KB
実行使用メモリ 54,164 KB
最終ジャッジ日時 2025-06-12 13:53:09
合計ジャッジ時間 2,802 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

p = "1309020564363155364990198847863210152708042104341971929"
M = int(input())
if M == 1:
    print("even")  # Any number mod 1 is 0, which is even
else:
    mod = 0
    for c in p:
        mod = (mod * 10 + int(c)) % M
    print("even" if mod % 2 == 0 else "odd")
0