結果

問題 No.1004 サイコロの実装 (2)
ユーザー ntuda
提出日時 2025-02-11 12:04:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 441 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 54,008 KB
最終ジャッジ日時 2025-02-11 12:04:36
合計ジャッジ時間 3,033 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, x0, N = map(int, input().split())
if b % 2 == 1:
    if x0 % 2 == 1:
        print(N//2,0)
    else:
        print(0,N//2)
else:
    if x0 % 2 == 0:
        print(N//2,N//2)
    else:
        print(0,0)
0