結果

問題 No.1120 Strange Teacher
ユーザー c-yanc-yan
提出日時 2020-07-22 21:24:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 23,604 KB
最終ジャッジ日時 2023-09-04 14:41:39
合計ジャッジ時間 3,175 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,944 KB
testcase_10 AC 74 ms
23,468 KB
testcase_11 AC 74 ms
23,564 KB
testcase_12 AC 75 ms
23,416 KB
testcase_13 AC 74 ms
23,604 KB
testcase_14 AC 75 ms
23,476 KB
testcase_15 AC 74 ms
23,556 KB
testcase_16 AC 75 ms
23,592 KB
testcase_17 AC 74 ms
23,488 KB
testcase_18 AC 15 ms
7,940 KB
testcase_19 AC 76 ms
22,976 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 16 ms
7,804 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 16 ms
7,812 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 15 ms
7,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))

if (sum(A) - sum(B)) % (1 - N) == 0:
    print((sum(A) - sum(B)) // (1 - N))
else:
    print(-1)
0