結果
| 問題 |
No.142 単なる配列の操作に関する実装問題
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-04-09 21:25:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 376 ms |
| コンパイル使用メモリ | 81,908 KB |
| 実行使用メモリ | 95,484 KB |
| 最終ジャッジ日時 | 2024-09-13 21:08:32 |
| 合計ジャッジ時間 | 2,951 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 5 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N, S, X, Y, Z = map(int, readline().split())
N = 2 * 10**6
A = [0] * N
A[0] = S&1
x = S
for i in range(1, N):
x = (x * X + Y) % Z
A[i] = x&1
A = int(''.join(map(str, A)), 2)
maspy