結果
| 問題 | No.3546 Robot on Torus (All Language) |
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2026-05-17 02:19:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 67,968 KB |
| スコア | 203 |
| 最終ジャッジ日時 | 2026-05-17 02:19:58 |
| 合計ジャッジ時間 | 6,048 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
h,w=map(int,input().split());s=[input()for _ in[1]*h]
for y in range(h):
x=s[y].find("R")
if x+1:c=".";break
while c==".":x=(x+1)%w;y=(y+1)%h;c=s[y][x]
print("loop")if c=="R"else print(y or h,x or w)
ID 21712