結果

問題 No.1986 Yummy
ユーザー gew1fw
提出日時 2025-06-12 13:11:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 133 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,608 KB
実行使用メモリ 53,636 KB
最終ジャッジ日時 2025-06-12 13:14:51
合計ジャッジ時間 2,327 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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