結果

問題 No.1335 1337
ユーザー トッティ
提出日時 2021-01-15 21:28:01
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 768 ms
コンパイル使用メモリ 129,024 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 13:17:45
合計ジャッジ時間 1,401 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
  std::string s1, s2;
  std::cin >> s1;
  std::cin >> s2;

  for (const auto c : s2) {
    if (c >= 97 && c <= 122) {
      std::cout << c;
    } else {
      std::cout << s1[c - 48];
    }
  }
  std::cout << '\n';
}
0