結果
| 問題 | No.3545 Robot on Torus (Python) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-16 23:57:23 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 224µs | |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 82,464 KB |
| 実行使用メモリ | 87,092 KB |
| スコア | 443 |
| 最終ジャッジ日時 | 2026-09-28 10:47:39 |
| 合計ジャッジ時間 | 3,768 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
h,w,*s=open(0).read().split();q=2e6;h=int(h);w=int(w)
for c in s:
if'R'in c:y=c.index('R');x=s.index(c)
while q*(s[x][y]!='#'):x=(x+1)%h;y=(y+1)%w;q-=1
print(q and f"{x or h} {y or w}"or"loop")