結果
| 問題 | No.3562 Communicate Sorted Vector |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-05-31 06:23:06 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WJ
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 433 bytes |
| 記録 | |
| 最終ジャッジ日時 | 2026-10-07 19:11:13 |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
ソースコード
player = input()
N, Q = map(int, input().split())
if player == "Alice":
A = list(map(int, input().split()))
S = []
pre = 0
for a in A:
n = a-pre+1
S.append(bin(n)[3:])
pre = a
print(len(S))
for s in S:
print(s)
else:
K = int(input())
S = [input() for _ in range(K)]
A = [int("1"+S[0], 2)-1]
for s in S[1:]:
A.append(A[-1]+int("1"+s, 2)-1)
print(*A)
detteiuu