結果
問題 |
No.3069 Invisible Speedrun
|
ユーザー |
![]() |
提出日時 | 2025-03-21 22:27:43 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 443 bytes |
コンパイル時間 | 977 ms |
コンパイル使用メモリ | 84,504 KB |
実行使用メモリ | 26,356 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2025-03-21 22:27:51 |
合計ジャッジ時間 | 7,769 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 80 |
ソースコード
#include<iostream> #include<vector> using namespace std; const int di[] = {0,-1,0,1}; const int dj[] = {1,0,-1,0}; int main() { int N; cin >> N; string cmd = "LURD"; int cnt = 0; while(true) { if(cnt==2*N-3)cout << 'U' << endl; else if(cnt==2*N-2)cout << 'R' << endl; else if(cnt==2*N-1)cout << 'D' << endl; else if(cnt&1)cout << 'R' << endl; else cout << 'D' << endl; cnt++; char c; cin >> c; if(c!=0) return 0; } }