結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
besukohu
|
| 提出日時 | 2026-01-11 15:46:43 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 927 bytes |
| 記録 | |
| コンパイル時間 | 3,443 ms |
| コンパイル使用メモリ | 339,020 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 15:46:47 |
| 合計ジャッジ時間 | 3,796 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using a2 = array<ll, 2>;
using a3 = array<ll, 3>;
bool chmin(auto& a, const auto& b) { return a > b ? a = b, 1 : 0; }
bool chmax(auto& a, const auto& b) { return a < b ? a = b, 1 : 0; }
ll mod = 998244353;
const ll INF = 1e18;
ifstream in;
ofstream out;
int main(int argc, char** argv) {
ios::sync_with_stdio(false);
cin.tie(0);
if(argc > 2) {
in.open(argv[1]);
cin.rdbuf(in.rdbuf());
out.open(argv[2]);
cout.rdbuf(out.rdbuf());
}
ll n, w, h;
cin >> n >> w >> h;
string s;
cin >> s;
vector<string> ans(h, string(w, 'x'));
ll i = 0, j = 0;
for(auto& x : s) {
if(x == 'o') {
ans[h - i - 1][j] = 'o';
i++;
} else {
i = 0;
j++;
}
}
for(auto& x : ans) {
cout << x << endl;
}
return 0;
}
besukohu