結果
問題 |
No.185 和風
|
ユーザー |
|
提出日時 | 2016-02-25 16:17:01 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 13:42:06 |
合計ジャッジ時間 | 638 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 1 |
ソースコード
#coding: utf-8 ##yuki_185 import sys n=int(raw_input()) for i in xrange(n): s=map(int,raw_input().split()) x=s[0] y=s[1] if i==0: if y-x>=0: temp=y-x else: print -1 sys.exit() else: if y-x>=0 and temp==y-x: continue else: print -1 sys.exit() res=temp print res