結果
| 問題 | No.3546 Robot on Torus (All Language) |
| コンテスト | |
| ユーザー |
angel_p_57
|
| 提出日時 | 2026-05-16 20:46:53 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 231 ms / 2,000 ms |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 15,744 KB |
| スコア | 226 |
| 最終ジャッジ日時 | 2026-05-16 20:47:09 |
| 合計ジャッジ時間 | 7,110 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
コンパイルメッセージ
Syntax OK
ソースコード
s,*m=$<.to_a
h,w=s.split.map &:to_i
s=r=(0..t=c=h).find{c=m[_1].index ?R}
r,c=s,t while m[s=(r+1)%h][t=(c+1)%w]==?.
puts m[s][t]==?R? :loop: "#{r+1} #{c+1}"
angel_p_57