結果
問題 |
No.9000 Hello World! (テスト用)
|
ユーザー |
|
提出日時 | 2018-03-10 22:23:48 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 578 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 119,040 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 12:12:37 |
合計ジャッジ時間 | 1,012 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include <iostream> #define OFFSET 6 #ifdef __clang__ #include <typeinfo> #undef OFFSET #define OFFSET 2 #endif typedef class ciefememepaadhepfcemeeab { public: int w() { auto word = typeid(*this).name(); auto tochar = [](char oct1, char oct2) { auto tohex = [](char oct){ return oct - 'a'; }; return static_cast<char>(tohex(oct1) * 0x10 + tohex(oct2) + 0x20); }; for(int i = -1; !!word[++i * 2 + OFFSET]; std::cout << tochar(word[i * 2 + OFFSET], word[i * 2 + OFFSET + 1])); std::cout << std::endl; return 0; } } h; int main() { return h().w(); }