結果

問題 No.185 和風
ユーザー tkr182tkr182
提出日時 2019-02-27 13:41:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,904 KB
最終ジャッジ日時 2023-09-05 09:15:32
合計ジャッジ時間 732 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,804 KB
testcase_01 AC 18 ms
7,816 KB
testcase_02 AC 18 ms
7,896 KB
testcase_03 AC 19 ms
7,852 KB
testcase_04 AC 18 ms
7,904 KB
testcase_05 AC 16 ms
7,852 KB
testcase_06 AC 18 ms
7,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:5: SyntaxWarning: invalid decimal literal
  print(s[0]if len(list(set(s)))==1 and s[0]>0else-1)

ソースコード

diff #

s=[]
for i in range(int(input())):
    x,y=map(int,input().split())
    s.append(y-x)
print(s[0]if len(list(set(s)))==1 and s[0]>0else-1)
0