結果
| 問題 | No.3544 Robot on Torus (C++) |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2026-05-16 21:20:48 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 79,732 KB |
| 実行使用メモリ | 6,400 KB |
| スコア | 474 |
| 最終ジャッジ日時 | 2026-05-16 21:20:56 |
| 合計ジャッジ時間 | 6,926 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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];)b+=s[i]/81*i++;for(a=b/w;i=s[++a%h*w+ ++b%w],i==46;);printf(i&1?"%d %d":"loop",a%h?:h,b%w?:w);}
| ^~~~
ソースコード
#import<iostream>
char s[1<<20];int a,b,h,w,i;main(){for(std::cin>>h>>w;std::cin>>s[i];)b+=s[i]/81*i++;for(a=b/w;i=s[++a%h*w+ ++b%w],i==46;);printf(i&1?"%d %d":"loop",a%h?:h,b%w?:w);}
tails