結果
| 問題 |
No.185 和風
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-15 21:09:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 1,000 ms |
| コード長 | 157 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 63,124 KB |
| 最終ジャッジ日時 | 2024-09-20 02:14:36 |
| 合計ジャッジ時間 | 952 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
n = int(input())
r = [0]*n
for i in range(n):
a,b = map(int,input().split())
r[i] = b-a
print(r[0] if r[0] > 0 and all(r[0]==ri for ri in r) else -1)
convexineq