結果

問題 No.8064 う し た ぷ に き あ く ん 笑
ユーザー Mister
提出日時 2020-08-01 11:50:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 819 bytes
コンパイル時間 886 ms
コンパイル使用メモリ 77,236 KB
最終ジャッジ日時 2025-01-12 12:30:25
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 47
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>

const std::vector<std::string>
    dec{"う し ", "う あ ", "ん 笑 ", "た ぷ ",
        "く ん ", "ぷ に ", "し き ", "あ く ",
        "う く ", "あ 笑 ", "う ん ", "し ぷ ",
        "う き ", "く 笑 ", "う 笑 ", "に き ",
        "ぷ 笑 ", "た き ", "た ん ", "し あ ",
        "し ん ", "う う ", "う た ", "き 笑 ",
        "に く ", "笑 笑 "};

void solve() {
    std::string s;
    std::cin >> s;
    for (char c : s) std::cout << dec[c - 'a'];
    std::cout << "\n";
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}
0