結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
s4na_penguin
|
| 提出日時 | 2020-11-06 22:19:07 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-07-22 13:04:43 |
| 合計ジャッジ時間 | 3,318 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 23 |
コンパイルメッセージ
Syntax OK
ソースコード
def love(params)
!params.index('LOVE').nil? ? 'YES' : 'NO'
end
def strs
strs = []
num = gets.split(' ').first.to_i
# p "num = #{num}"
num.times.each do
strs << gets
end
# p ''
# p strs.to_s
# p ''
strs.joins(' ')
end
puts love(strs)
s4na_penguin