結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-08-26 00:56:24 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 77,732 KB |
| 最終ジャッジ日時 | 2025-12-03 21:18:07 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | AC * 12 WA * 6 RE * 5 |
ソースコード
x1, y1 = map(int, raw_input().split()) x2, y2 = map(int, raw_input().split()) if x1 == 0 and x2 == 0: print y1 elif y1 == 0 and y2 == 0: print x1 elif x1 % x2 == 0 and y1 % y2 == 0 and x2 != 0 and y2 != 0: print x1 + 1 else: if x1 >= y1: print y1 + (x1 - y1) else: print x1 + (y1 - x1)
srup٩(๑`н´๑)۶