結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 16:38:28 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 494 bytes |
| 記録 | |
| コンパイル時間 | 3,411 ms |
| コンパイル使用メモリ | 336,764 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 16:38:33 |
| 合計ジャッジ時間 | 4,329 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define all(x) x.begin(),x.end()
#define rep(i,n) for(int i=0;i<(int)(n);++i)
int main(){
int N,W,H;
cin>>N>>W>>H;
string S;
cin>>S;
vector<string> ans(H,string(W,'x'));
int j=0;
int i=H-1;
for(char c: S){
if(c=='o'){
ans[i][j]='o';
i--;
}
else{
i=H-1;
j++;
}
}
rep(i,H)cout<<ans[i]<<"\n";
}