結果
問題 |
No.185 和風
|
ユーザー |
![]() |
提出日時 | 2020-03-04 22:21:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-14 00:34:21 |
合計ジャッジ時間 | 795 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 1 |
ソースコード
N = int(input()) now = 0 flag = 0 for i in range(N): x,y = map(int,input().split()) S = y-x if S<0: print(-1) flag += 1 break else: if i == 0: now = y-x else: if S != now: print(-1) flag += 1 break if flag == 0: print(now)