結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2022-12-28 09:40:40 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 1,000 ms |
| コード長 | 96 bytes |
| 記録 | |
| コンパイル時間 | 382 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-16 23:12:14 |
| 合計ジャッジ時間 | 3,505 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
Syntax OK
ソースコード
ans="Yes"
gets.split(" ").map{|e| e.to_i}.sort.each_cons(2){|a,b|
ans="No" if a+1!=b
}
puts ans
horiesiniti