結果
| 問題 | No.9006 マルチバイト文字テスト(テスト用) |
| ユーザー |
|
| 提出日時 | 2017-09-28 21:15:36 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 748 ms |
| コンパイル使用メモリ | 75,892 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 18:21:55 |
| 合計ジャッジ時間 | 1,172 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
ソースコード
#include <algorithm>
#include <codecvt>
#include <iostream>
#include <locale>
#include <string>
using namespace std;
int main()
{
string s; cin >> s; // UTF-8
wstring_convert<codecvt_utf8_utf16<wchar_t>> conv;
wstring ws = conv.from_bytes(s);
reverse(begin(ws), end(ws));
string ans = conv.to_bytes(ws);
cout << ans << '\n';
return 0;
}