結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2025-12-03 17:21:30 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 1,000 ms |
| + 251µs | |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 81,292 KB |
| 実行使用メモリ | 65,152 KB |
| 最終ジャッジ日時 | 2026-10-11 08:35:51 |
| 合計ジャッジ時間 | 1,389 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
n = int(input()) ans = 0 for _ in range(n): x, y = map(int, input().split()) if ans == 0: if x < y: ans = y - x else: ans = -1 elif ans != -1: if ans + x != y: ans = -1 print(ans)
kidodesu