結果
| 問題 |
No.400 鏡
|
| コンテスト | |
| ユーザー |
kichirb3
|
| 提出日時 | 2018-02-27 14:46:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 471 bytes |
| コンパイル時間 | 775 ms |
| コンパイル使用メモリ | 67,712 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 08:18:03 |
| 合計ジャッジ時間 | 1,319 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
ソースコード
// No.400 鏡
// https://yukicoder.me/problems/no/400
//
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string solve(string &S);
int main() {
string S;
cin >> S;
string ans = solve(S);
cout << ans << endl;
}
string solve(string &S) {
stringstream ss;
for (int i = S.size()-1; i >= 0; i--)
if (S[i] == '<') {
ss << '>';
} else {
ss << '<';
}
return ss.str();
}
kichirb3