結果
問題 |
No.1120 Strange Teacher
|
ユーザー |
|
提出日時 | 2020-07-22 21:38:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 25,316 KB |
最終ジャッジ日時 | 2024-06-22 14:32:33 |
合計ジャッジ時間 | 3,298 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 11 RE * 2 |
ソースコード
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) if sum(a) < sum(b): print(-1) else: c = (sum(a) - sum(b)) // (n - 2) for i in range(n): if abs(a[i] - b[i]) // (n - 2) >= c: c = -1 print(c)