結果
| 問題 |
No.1650 Moving Coins
|
| コンテスト | |
| ユーザー |
judgelaw
|
| 提出日時 | 2021-08-20 21:47:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 48,136 KB |
| 最終ジャッジ日時 | 2024-10-14 03:10:16 |
| 合計ジャッジ時間 | 15,783 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 16 |
ソースコード
N=int(input())
A=list(map(int, input().split()))
B=list(map(int, input().split()))
ans=0
hand=[]
for i in range(N):
temp=abs(A[i]-B[i])
ans+=temp
if A[i]>B[i]:
hand.append((i+1,"L",temp))
else:
hand.append((i+1,"R",temp))
print(ans)
for i,w,cnt in hand:
for _ in range(cnt):
print(i,w)
judgelaw