結果
| 問題 |
No.1004 サイコロの実装 (2)
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-03-06 21:32:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 371 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2024-10-14 04:22:03 |
| 合計ジャッジ時間 | 5,952 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 TLE * 1 -- * 13 |
ソースコード
a, b, x0, N = map(int, input().split())
pos = [0, 0]
stone = [[0, 0], [0, 0]]
x = x0
for i in range(2 * N):
x = (a * x + b) % 4294967296
pos[i % 2] += (x % 6) + 1
stone[i % 2][pos[i % 2] % 2] += 1
print(min(stone[0]), min(stone[1]))
c-yan