結果
| 問題 | No.1650 Moving Coins |
| コンテスト | |
| ユーザー |
wolgnik
|
| 提出日時 | 2021-08-20 21:43:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 137,840 KB |
| 最終ジャッジ日時 | 2026-05-01 13:24:01 |
| 合計ジャッジ時間 | 7,824 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 16 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
res = []
for i in range(N):
x = a[i]
y = b[i]
while x != y:
if x < y:
res.append((i + 1, "R"))
x += 1
else:
res.append((i + 1, "L"))
x -= 1
print(len(res))
for r in res: print(*r)
wolgnik