結果
| 問題 |
No.1120 Strange Teacher
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-24 22:57:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 109 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 25,216 KB |
| 最終ジャッジ日時 | 2024-06-25 22:25:42 |
| 合計ジャッジ時間 | 4,032 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 9 WA * 18 |
ソースコード
n=int(input())
ans=0
for a,b in zip(list(map(int,input().split())),list(map(int,input().split()))):
if a<b:print(-1);exit()
ans+=a-b
print(ans)