結果
| 問題 |
No.3259 C++ → Rust → Python
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 14:27:31 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 257 bytes |
| コンパイル時間 | 337 ms |
| コンパイル使用メモリ | 8,064 KB |
| 実行使用メモリ | 13,312 KB |
| 最終ジャッジ日時 | 2025-09-06 14:27:45 |
| 合計ジャッジ時間 | 3,459 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
Syntax OK
ソースコード
# frozen_string_literal: true
in_l, in_r = gets.chomp.split.map(&:to_i)
langs = Set[]
in_l.upto(in_r) do |i|
case i
when 1..295
langs << "C++"
when 296..416
langs << "Rust"
when 417..420
langs << "Python"
end
end
puts langs.size - 1