結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-15 06:55:58 |
| 言語 | C++23(gcc16) (gcc 16.2.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 889µs | |
| コード長 | 404 bytes |
| 記録 | |
| コンパイル時間 | 2,203 ms |
| コンパイル使用メモリ | 179,428 KB |
| 実行使用メモリ | 9,852 KB |
| 最終ジャッジ日時 | 2026-10-17 17:11:49 |
| 合計ジャッジ時間 | 3,911 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
int main(void){
int n, w, h; cin >> n >> w >> h;
string s; cin >> s;
vector ans(h, string(w, 'x'));
s+='l';
int j=0, c=0;
for(auto p:s){
if(p=='o') c++;
else{
for(int i=0; i<c; i++) ans[h-1-i][j]='o';
j++, c=0;
}
}
for(auto p:ans) cout << p << endl;
return 0;
}