Submission #25979371


Source Code Expand

#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;
}

Submission Info

Submission Time
Task B - Maritozzo
User ryo_ryo66
Language C++ (GCC 9.2.1)
Score 200
Code Size 288 Byte
Status AC
Exec Time 8 ms
Memory 3596 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 10
Set Name Test Cases
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
Case Name Status Exec Time Memory
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