結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 13:45:04 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 3,102 bytes |
| 記録 | |
| コンパイル時間 | 4,605 ms |
| コンパイル使用メモリ | 277,356 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-11 14:03:45 |
| 合計ジャッジ時間 | 4,924 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 2 |
ソースコード
// clang-format off
#include <bits/stdc++.h>
#include <atcoder/all>
// #include <boost/multiprecision/cpp_int.hpp>
// #include <boost/multiprecision/integer.hpp>
typedef long long int ll;
#define overload5(a,b,c,d,e,name,...) name
#define overload4(a,b,c,d,name,...) name
#define overload3(a,b,c,name,...) name
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define EREP(i,n) for(ll i=1;i<=signed(n);i++)
#define rep1(a) for(ll i = 0; i < a; i++)
#define rep2(i, a) for(ll i = 0; i < a; i++)
#define rep3(i, a, b) for(ll i = a; i < b; i++)
#define rep4(i, a, b, c) for(ll i = a; i < b; i += c)
#define REP(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
#define ALL(x) std::begin(x), std::end(x)
#define INT(...) int __VA_ARGS__; input(__VA_ARGS__)
#define LL(...) ll __VA_ARGS__; input(__VA_ARGS__)
#define STR(...) string __VA_ARGS__;in(__VA_ARGS__)
using namespace std;
using namespace atcoder;
// using boost::multiprecision::cpp_int;
// namespace mp = boost::multiprecision;
//#define EVEL 1
#ifdef EVEL
#define DEB(X) cout << #X <<":" <<X<<" " ;
#define TF(f) f ? cout<<"true " : cout<<"false ";
#define END cout<<"\n";
#else
#define DEB(X) {}
#define TF(f) {}
#define END {}
#endif
const ll INF = 4e18;
typedef std::pair<ll, ll> P;
struct edge { ll to, cost; };
#define VMAX 100000
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template <class T> T vgcd(T m, T n) {return std::gcd(m, n);}
template <class T, class... Args> T vgcd(T a, Args... args) {return vgcd(a, vgcd(args...));}
// tatyam
template<class... T> void input(T&... a){ (cin >> ... >> a);}
// https://qiita.com/KowerKoint/items/8fc16aecc1cc93689a4e#%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88
void print() { cout << '\n'; }
template<typename T> void print(const T &t) { cout << t << '\n'; }
template<typename Head, typename... Tail> void print(const Head &head, const Tail &... tail) { cout << head << ' '; print(tail...);}
template<typename T> ostream &operator<<(ostream &os, const vector< T > &v) { for(int i = 0; i < (int) v.size(); i++) { os << v[i] << (i + 1 != (int) v.size() ? " " : ""); } return os;}
template<typename T> istream &operator>>(istream &is, vector< T > &v) {for(T &in : v) is >> in; return is; }
// ----
// int dx[] = {1, -1, 0, 0, 1, 1, -1, -1};
// int dy[] = {0, 0, 1, -1, 1, -1, 1, -1};
using mint = modint998244353;
// clang-format on
ll ans = 0;
bool F = false;
// Nafmo template 2023.08.16
// Generated by 2.14.0 https://github.com/kyuridenamida/atcoder-tools
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
LL(N,W,H);
string S;
cin >> S;
vector<string> G(H);
REP(i,H){
G[i] = "";
REP(j,W){
G[i] += 'x';
}
}
ll now = 0;
REP(j, W){
for(int i = H-1; i>= 0; i--){
if(now >= S.size() || S[now] == 'l'){
now++;
break;
}
G[i][j] = 'o';
now++;
}
}
REP(i,H){
cout << G[i] <<endl;
}
return 0;
}