結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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,832 KB
testcase_10 AC 76 ms
23,424 KB
testcase_11 AC 76 ms
23,516 KB
testcase_12 AC 75 ms
23,596 KB
testcase_13 AC 75 ms
23,640 KB
testcase_14 AC 76 ms
23,544 KB
testcase_15 AC 76 ms
23,508 KB
testcase_16 AC 76 ms
23,420 KB
testcase_17 AC 75 ms
23,512 KB
testcase_18 AC 16 ms
7,844 KB
testcase_19 AC 76 ms
23,064 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 16 ms
7,800 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 RE -
testcase_26 AC 16 ms
7,856 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 16 ms
7,840 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 - 1)))
else:
    print(-1)
0