結果

問題 No.1986 Yummy
ユーザー gew1fw
提出日時 2025-06-12 13:16:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 133 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2025-06-12 13:18:49
合計ジャッジ時間 2,139 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N % 2 == 0:
    print(N // 2)
else:
    q, r = divmod(N + 1, 4)
    ans = q + (1 if r >= 2 else 0)
    print(ans)
0