結果
問題 | No.185 和風 |
ユーザー | akihito0000 |
提出日時 | 2016-08-14 00:05:35 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 6,672 KB |
実行使用メモリ | 6,060 KB |
最終ジャッジ日時 | 2023-08-07 12:36:32 |
合計ジャッジ時間 | 693 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 11 ms
5,940 KB |
testcase_01 | AC | 13 ms
6,060 KB |
testcase_02 | AC | 11 ms
5,876 KB |
testcase_03 | AC | 11 ms
5,944 KB |
testcase_04 | AC | 11 ms
6,024 KB |
testcase_05 | AC | 11 ms
6,016 KB |
testcase_06 | AC | 13 ms
5,876 KB |
ソースコード
#!/usr/bin/python # -*- coding: utf-8 -*- N = int(raw_input()) for i in range(N): x, y = map(int, raw_input().split()) if i == 0: sa = y - x if y - x <= 0 or sa != y -x: print -1 exit() sa = y - x else: print sa