結果
問題 | No.400 鏡 |
ユーザー |
![]() |
提出日時 | 2017-05-04 08:42:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 19 ms / 2,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 2,017 ms |
コンパイル使用メモリ | 192,512 KB |
最終ジャッジ日時 | 2025-01-03 22:16:01 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h>#define re(i,j,n) for(li i=(j);i<(n);i++)#define rep(i,n) re(i,0,(n))#define all(a) begin(a),end(a)#define pb push_backusing namespace std;typedef long int li;typedef unsigned long long ull;typedef vector<int> vi;typedef vector<li> vli;typedef vector<string> vs;int main(){string s;cin>>s;for(int i=s.size()-1;i>=0;i--){if(s[i]=='<') cout<<">";if(s[i]=='>') cout<<"<";}cout<<endl;return 0;}