結果

問題 No.2925 2-Letter Shiritori
ユーザー toshiro_yanagi
提出日時 2025-05-10 14:46:24
言語 Ruby
(3.4.1)
結果
TLE  
実行時間 -
コード長 268 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 8,356 KB
実行使用メモリ 49,568 KB
最終ジャッジ日時 2025-05-10 14:46:31
合計ジャッジ時間 6,951 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 1 -- * 1
other -- * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

class Start
  def main
    _ = input
    puts "? aa"
    while true
      x = readlines.chomp
      break if x.include?("!")
      echo "? #{x[-1]}a"
    end
  end

  protected

  def echo(*x)
    print(*x)
    puts
  end

  def input = gets.chomp
end

Start.new.main
0