結果
問題 | No.185 和風 |
ユーザー |
![]() |
提出日時 | 2017-11-04 04:41:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-23 15:51:43 |
合計ジャッジ時間 | 806 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
n = int(input()) tmp_list = [] for i in range(n): x, y = map(int, input().split()) tmp = y - x if tmp > 0: tmp_list.append(tmp) else: print(-1) break else: if tmp_list.count(tmp_list[0]) == n: print(tmp_list[0]) else: print(-1)