結果

問題 No.1004 サイコロの実装 (2)
ユーザー tktk_snsn
提出日時 2020-12-19 13:54:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 153 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-21 10:14:25
合計ジャッジ時間 3,009 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, x, N = map(int, input().split())

div, mod = divmod(N, 4)
score = div + int(mod >= 2)

if x % 2 == 0:
    print(score, 0)
else:
    print(0, score)
0