結果
問題 | No.400 鏡 |
ユーザー |
|
提出日時 | 2018-07-21 13:39:16 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 525 ms |
コンパイル使用メモリ | 57,596 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 04:48:43 |
合計ジャッジ時間 | 1,135 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
//No.400 鏡#include<iostream>#include<string>#include<algorithm>using namespace std;int main(){string S;cin >> S;reverse(S.begin(), S.end());for (int i = 0; i < S.length(); i++) {if (S[i] == '>')S[i] = '<';else S[i] = '>';}cout << S;return 0;}