結果

問題 No.2925 2-Letter Shiritori
ユーザー maguroflymagurofly
提出日時 2024-10-12 15:26:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 29,512 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-12 15:26:34
合計ジャッジ時間 3,943 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
28,744 KB
testcase_01 AC 162 ms
28,872 KB
testcase_02 AC 156 ms
28,744 KB
testcase_03 AC 155 ms
28,872 KB
testcase_04 AC 187 ms
29,000 KB
testcase_05 AC 160 ms
29,512 KB
testcase_06 AC 157 ms
29,384 KB
testcase_07 AC 155 ms
29,000 KB
testcase_08 AC 155 ms
28,736 KB
testcase_09 AC 163 ms
28,864 KB
testcase_10 AC 189 ms
28,616 KB
testcase_11 AC 159 ms
29,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require "set"
STDOUT.sync = true

a = gets.chomp
last = a

loop do
	puts "? " + last + a
	n = gets.split
	if n[0] == ?!
		exit
	else
		last = n[1][-1]
	end
end
0