結果
問題 |
No.185 和風
|
ユーザー |
|
提出日時 | 2018-03-28 00:17:30 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 15 ms / 1,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 57 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 12:59:23 |
合計ジャッジ時間 | 694 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
N = input() L =[] for i in range(0,N): first = raw_input() split_first = first.split() X = int(split_first[0]) Y = int(split_first[1]) L.append(Y-X) L=set(L) if len(set(L)) == 1: L = list(L) if L[0] >= 1: print L[0] else: print -1 else: print -1