結果
| 問題 | No.142 単なる配列の操作に関する実装問題 |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-04-09 21:25:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 783 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 100,608 KB |
| 最終ジャッジ日時 | 2026-04-04 07:51:30 |
| 合計ジャッジ時間 | 2,124 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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