結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-01 17:36:59 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 555 bytes |
| 記録 | |
| コンパイル時間 | 1,714 ms |
| コンパイル使用メモリ | 217,460 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 13:58:10 |
| 合計ジャッジ時間 | 2,207 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#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<vector<char>> a(w,vector<char>(h,'x'));
int x = 0;
int y = 0;
rep(i,n){
if(s[i] == 'o'){
a[x][y] = 'o';
y += 1;
continue;
}else if(s[i]=='l'){
y = 0;
x += 1;
}
}
rep(i,h){
rep(j,w){
cout<<a[j][h - 1 - i];
}
cout<<endl;
}
}