結果
| 問題 | No.1004 サイコロの実装 (2) |
| コンテスト | |
| ユーザー |
ogi_welcome
|
| 提出日時 | 2020-03-06 21:55:20 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 758µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-16 07:16:46 |
| 合計ジャッジ時間 | 3,124 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 38 |
ソースコード
a,b,x,n=map(int,input().split())
y=[]
z=x
for i in range(2):
z=a*z+b
y.append(z%6+1)
ans=[]
if y[0]%2==0:
ans.append(0)
else:
ans.append(n//2)
if y[1]%2==0:
ans.append(0)
else:
ans.append(n//2)
print(*ans)
ogi_welcome