結果
| 問題 | No.331 CodeRunnerでやれ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-03 23:20:31 |
| 言語 | Ruby (4.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 491 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 83,320 KB |
| 最終ジャッジ日時 | 2026-03-31 20:14:10 |
| 合計ジャッジ時間 | 13,189 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | TLE * 1 -- * 15 |
ソースコード
n,m = gets.split.map(&:to_i)
s = gets.chomp
a = ["L","R"]
t = 0
while s != "Merry Christmas!"
s = s.to_i
if s > 0
puts "F"
STDOUT.flush
else
puts a[t]
STDOUT.flush
s = gets.to_i
if s == 0
puts a[t]
STDOUT.flush
s = gets.to_i
puts a[t]
STDOUT.flush
t = 1 - t
else
puts "F"
STDOUT.flush
end
end
s = gets.chomp
end