結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
tau1235
|
| 提出日時 | 2026-01-11 13:35:10 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 420 bytes |
| 記録 | |
| コンパイル時間 | 3,322 ms |
| コンパイル使用メモリ | 340,136 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 13:59:37 |
| 合計ジャッジ時間 | 3,486 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,w,h;
string s;
cin>>n>>w>>h>>s;
vector<int> c;
int cnt=0;
s+="l";
for (int i=0;i<=n;i++){
if (s[i]=='o') cnt++;
else{
c.push_back(cnt);
cnt=0;
}
}
vector<string> ans(h,string(w,'x'));
for (int i=0;i<c.size();i++){
for (int j=0;j<c[i];j++) ans[h-j-1][i]='o';
}
for (int i=0;i<h;i++) cout<<ans[i]<<endl;
}
tau1235