結果
問題 |
No.3035 文字列のみの反転
|
ユーザー |
|
提出日時 | 2025-02-28 21:35:55 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 547 bytes |
コンパイル時間 | 3,457 ms |
コンパイル使用メモリ | 274,660 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-28 21:36:00 |
合計ジャッジ時間 | 3,760 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; // #include<atcoder/all> // using mint = atcoder::modint998244353; using ld = long double; #define fi first #define se second #define all(x) x.begin(), x.end() #define rep(i,n) for(int i=0;i<(int)(n);++i) #define chmax(a,b) a=max(a,b) #define chmin(a,b) a=min(a,b) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string S; cin>>S; string a,b; for(char c: S){ if('a'<=c&&c<='z')a+=c; else b+=c; } reverse(all(a)); cout<<a<<b<<"\n"; }