結果

問題 No.1004 サイコロの実装 (2)
ユーザー lam6er
提出日時 2025-04-16 00:42:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 81,908 KB
実行使用メモリ 53,416 KB
最終ジャッジ日時 2025-04-16 00:45:53
合計ジャッジ時間 2,705 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, x0, N = map(int, input().split())
p0 = x0 % 2
takahashi = (N // 2) if p0 else 0
aoki = (N // 2) if not p0 else 0
print(takahashi, aoki)
0