結果
| 問題 |
No.1650 Moving Coins
|
| コンテスト | |
| ユーザー |
yuusanlondon
|
| 提出日時 | 2021-08-20 21:43:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 120,240 KB |
| 最終ジャッジ日時 | 2024-10-14 03:02:32 |
| 合計ジャッジ時間 | 8,554 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 22 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
ans=[]
for i in range(n):
if a[i]<b[i]:
for j in range(b[i]-a[i]):
ans.append(' '.join([str(i+1),'R']))
else:
for j in range(b[i]-a[i]):
ans.append(' '.join([str(i+1),'L']))
print(len(ans))
for i in ans:
print(i)
yuusanlondon