結果
問題 | No.185 和風 |
ユーザー |
👑 |
提出日時 | 2019-03-29 11:08:59 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 00:20:03 |
合計ジャッジ時間 | 656 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
n, x, y = io.read("*n", "*n", "*n") ref = y - x if(ref <= 0) then ref = -1 else for i = 1, n - 1 do x, y = io.read("*n", "*n") if(ref ~= y - x) then ref = -1 break end end end print(ref)