結果

問題 No.3029 オイラー標数
ユーザー gew1fw
提出日時 2025-06-12 18:53:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,776 KB
実行使用メモリ 54,104 KB
最終ジャッジ日時 2025-06-12 18:54:05
合計ジャッジ時間 5,336 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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