結果
| 問題 | No.1829 Möbius Tunnelling |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-04 08:41:57 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 30,080 KB |
| 最終ジャッジ日時 | 2026-04-01 21:15:08 |
| 合計ジャッジ時間 | 2,741 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
Syntax OK
ソースコード
n=gets.to_i
a,b,c=gets.split(" ").map{|e| e.to_i}
if a<b then
if a+n-c<n then
puts "Yes"
else
puts "No"
end
else
if a>c then
puts "Yes"
else
puts "No"
end
end
horiesiniti