結果
問題 | No.185 和風 |
ユーザー | m_yukihiro |
提出日時 | 2015-04-25 18:52:55 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 6,668 KB |
実行使用メモリ | 6,128 KB |
最終ジャッジ日時 | 2023-09-18 11:25:00 |
合計ジャッジ時間 | 700 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
ソースコード
num = input() a, b = map(int, input().split()) ans = b - a num -= 1 for i in xrange(num): a, b = map(int, input().split()) tmp = b - a if ans != tmp: ans = -1 break if ans <= -1: ans = -1 print ans