結果
| 問題 |
No.1650 Moving Coins
|
| コンテスト | |
| ユーザー |
yuusanlondon
|
| 提出日時 | 2021-08-20 21:43:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 109,772 KB |
| 最終ジャッジ日時 | 2024-10-14 03:01:02 |
| 合計ジャッジ時間 | 7,533 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 2 |
| other | AC * 1 WA * 4 RE * 19 |
ソースコード
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