結果
| 問題 | No.3546 Robot on Torus (All Language) |
| コンテスト | |
| ユーザー |
angel_p_57
|
| 提出日時 | 2026-05-16 20:46:53 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 222 ms / 2,000 ms |
| + 757µs | |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 8 ms |
| コンパイル使用メモリ | 8,704 KB |
| 実行使用メモリ | 15,488 KB |
| スコア | 226 |
| 最終ジャッジ日時 | 2026-09-28 08:52:12 |
| 合計ジャッジ時間 | 5,486 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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