結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-17 15:15:23 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 668 bytes |
| 記録 | |
| コンパイル時間 | 2,640 ms |
| コンパイル使用メモリ | 335,692 KB |
| 実行使用メモリ | 9,916 KB |
| 最終ジャッジ日時 | 2026-10-17 17:11:53 |
| 合計ジャッジ時間 | 3,887 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 12 |
ソースコード
// 改行2回しろということ?は?
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n, w, h;
cin >> n >> w >> h;
string s;
cin >> s;
vector<int> a(w);
for(int i = 0, cur = 0; i < n && cur < w; ){
int p = i;
while(i < n && s[i] == s[p]) i++;
if(s[p] == 'o') a[cur] = i - p;
else cur += i - p;
}
vector<string> ans(h, string(w, 'x'));
for(int x = 0; x < w; x++){
for(int y = 0; y < h && y < a[x]; y++){
ans[h - 1 - y][x] = 'o';
}
}
for(auto &&str : ans) cout << str << '\n';
cout << '\n';
}