結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-01 21:43:14 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 589 bytes |
| 記録 | |
| コンパイル時間 | 1,617 ms |
| コンパイル使用メモリ | 214,268 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 13:58:18 |
| 合計ジャッジ時間 | 2,181 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
string s;
cin>>n>>w>>h>>s;
vector<int> num(w, 0);
int x = 0;
rep(i,n){
if(s[i] == 'o'){
num[x] += 1;
continue;
}else if(s[i] == 'l'){
x += 1;
}
}
rep(i, h){
rep(j,w){
if(num[j] >= h - i){
num[j] -= 1;
cout << 'o';
}else{
cout << 'x';
}
}
cout << endl;
}
}