結果
問題 | No.400 鏡 |
ユーザー |
![]() |
提出日時 | 2016-08-07 11:31:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 1,618 ms |
コンパイル使用メモリ | 168,020 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 07:09:07 |
合計ジャッジ時間 | 2,288 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h>template<typename T> T in() { abort(); return T(); }template<> std::string in() { std::string str; std::cin >> str; return str; }template<typename T> void out(T x) { abort(); }template<> void out(std::string x) { std::cout << x << std::endl; }int main() {auto str = in<std::string>();std::reverse(std::begin(str), std::end(str));std::for_each(std::begin(str), std::end(str), [](char& x){ x = '<' + '>' - x; });out(str);return 0;}