結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2026-01-11 15:12:14 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 542 bytes |
| 記録 | |
| コンパイル時間 | 8,831 ms |
| コンパイル使用メモリ | 278,488 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-11 15:12:32 |
| 合計ジャッジ時間 | 5,735 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <stdio.h>
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf32 1000000001
#define Inf64 4000000000000000001LL
int main(){
int n,w,h;
cin>>n>>w>>h;
vector<int> ans(1,0);
string s;
cin>>s;
rep(i,n){
if(s[i]=='o')ans.back()++;
else ans.push_back(0);
}
vector<string> ss(h,string(w,'x'));
rep(i,ans.size()){
rep(j,ans[i])ss[h-1-j][i] = 'o';
}
rep(i,h)cout<<ss[i]<<endl;
return 0;
}
沙耶花