結果
問題 | No.185 和風 |
ユーザー | trineutron |
提出日時 | 2020-04-09 18:01:20 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 10,628 KB |
実行使用メモリ | 7,892 KB |
最終ジャッジ日時 | 2023-10-11 16:27:57 |
合計ジャッジ時間 | 823 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,792 KB |
testcase_01 | AC | 18 ms
7,832 KB |
testcase_02 | WA | - |
testcase_03 | AC | 18 ms
7,816 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 18 ms
7,788 KB |
ソースコード
n = int(input()) d = -1 for i in range(n): x, y = map(int, input().split()) if i == 0: d = y - x if d <= 0: break if d != y - x: print(-1) break else: print(d)