結果

問題 No.1004 サイコロの実装 (2)
ユーザー wattaiheiwattaihei
提出日時 2020-03-06 22:43:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-14 09:10:17
合計ジャッジ時間 2,397 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(ans2, ans1)
0