結果
問題 |
No.516 赤と青の風船
|
ユーザー |
|
提出日時 | 2025-07-29 12:49:26 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 92 ms / 2,000 ms |
コード長 | 193 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 8,192 KB |
実行使用メモリ | 12,928 KB |
最終ジャッジ日時 | 2025-07-29 12:49:28 |
合計ジャッジ時間 | 1,921 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
def ii() gets.chomp.to_i end def li() gets.chomp.split.map(&:to_i) end s=[] 3.times do s<<gets.chomp end if s.count("BLUE") < s.count("RED") puts "RED" else puts "BLUE" end