提出 #25979371


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

#define FOR(i, a, n) for (int i = a; i < (int)n; i++)
#define REP(i, n) FOR(i, 0, n)

string S[3];
string T;

int main() {
  REP(i, 3) cin >> S[i];
  cin >> T;
  for (char t : T) cout << S[t-'1'];
  cout << endl;
  return 0;
}

提出情報

提出日時
問題 B - Maritozzo
ユーザ ryo_ryo66
言語 C++ (GCC 9.2.1)
得点 200
コード長 288 Byte
結果 AC
実行時間 8 ms
メモリ 3596 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 10
セット名 テストケース
Sample example_00, example_01, example_02
All example_00, example_01, example_02, test_00, test_01, test_02, test_03, test_04, test_05, test_06
ケース名 結果 実行時間 メモリ
example_00 AC 8 ms 3492 KiB
example_01 AC 2 ms 3552 KiB
example_02 AC 2 ms 3580 KiB
test_00 AC 2 ms 3492 KiB
test_01 AC 2 ms 3500 KiB
test_02 AC 2 ms 3504 KiB
test_03 AC 2 ms 3596 KiB
test_04 AC 2 ms 3500 KiB
test_05 AC 2 ms 3500 KiB
test_06 AC 3 ms 3588 KiB