結果
問題 | No.185 和風 |
ユーザー |
![]() |
提出日時 | 2018-01-23 19:07:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-26 03:42:09 |
合計ジャッジ時間 | 964 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
N = int(input()) ans = [] for i in range(N): x, y = [int(j) for j in input().split()] ans.append(y - x) if len(set(ans)) == 1 and ans[0] > 0: print(ans[0]) else: print(-1)