結果
問題 | No.185 和風 |
ユーザー |
![]() |
提出日時 | 2017-10-01 21:16:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-15 21:46:05 |
合計ジャッジ時間 | 772 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
n = int(input()) li = [] judge = True for i in range(n): f, s = (int(i) for i in input().split()) li.append(s - f) for i in range(len(li)): if not li[i] == li[0] or li[i] < 1: judge = False break if judge: print(li[0]) else: print('-1')