結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
小指が強い人
|
| 提出日時 | 2015-11-17 09:23:48 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 1,000 ms |
| コード長 | 239 bytes |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-10-09 16:28:44 |
| 合計ジャッジ時間 | 3,264 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
Syntax OK
ソースコード
str = gets.split
tx = str[0].to_i
ty = str[1].to_i
str = gets.split
hx = str[0].to_i
hy = str[1].to_i
md = (tx > ty) ? tx : ty
if tx == ty && hx == hy
if tx < hx
puts md
else
puts md + 1
end
else
puts md
end
小指が強い人