結果
| 問題 | No.3544 Robot on Torus (C++) |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2026-05-16 21:42:17 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 72 ms / 2,000 ms |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 78,960 KB |
| 実行使用メモリ | 6,400 KB |
| スコア | 478 |
| 最終ジャッジ日時 | 2026-05-16 21:42:29 |
| 合計ジャッジ時間 | 6,737 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
1 | #import<iostream>
| ^~~~~~
main.cpp:2:29: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | char s[1<<20];int a,b,h,w,i;main(){for(std::cin>>h>>w;std::cin>>s[i]?s[i]>>6?b=i,a=b/w:0,++i:(i=s[++a%h*w+ ++b%w])==46;b%=w)a%=h;printf(i&1?"%d %d":"loop",a,b);}
| ^~~~
ソースコード
#import<iostream>
char s[1<<20];int a,b,h,w,i;main(){for(std::cin>>h>>w;std::cin>>s[i]?s[i]>>6?b=i,a=b/w:0,++i:(i=s[++a%h*w+ ++b%w])==46;b%=w)a%=h;printf(i&1?"%d %d":"loop",a,b);}
tails