結果
| 問題 | 
                            No.400 鏡
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-10-18 02:05:51 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 273 bytes | 
| コンパイル時間 | 502 ms | 
| コンパイル使用メモリ | 58,072 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-22 14:29:15 | 
| 合計ジャッジ時間 | 1,015 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 8 | 
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
int main(void) {
  using namespace std;
  string S;
  cin >> S;
  reverse(S.begin(), S.end());
  for (auto it = S.begin(); it != S.end(); it++) *it = (*it == '>') ? '<' : '>';
  cout << S << endl;
  return 0;
}