Submission #25926635
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;int main(){string S[3];for ( int i = 0 ; i < 3 ; i++ ) cin >> S[i];string num;cin >> num;string ans = "";for ( char c : num ) ans += S[int(c)-49];cout << ans;}
#include <bits/stdc++.h> using namespace std; int main() { string S[3]; for ( int i = 0 ; i < 3 ; i++ ) cin >> S[i]; string num; cin >> num; string ans = ""; for ( char c : num ) ans += S[int(c)-49]; cout << ans; }
Submission Info
Submission Time | |
---|---|
Task | B - Maritozzo |
User | TanKaiYi0220 |
Language | C++ (GCC 9.2.1) |
Score | 200 |
Code Size | 232 Byte |
Status | AC |
Exec Time | 6 ms |
Memory | 3644 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 6 ms | 3600 KB |
example_01 | AC | 2 ms | 3556 KB |
example_02 | AC | 2 ms | 3500 KB |
test_00 | AC | 3 ms | 3528 KB |
test_01 | AC | 2 ms | 3528 KB |
test_02 | AC | 2 ms | 3608 KB |
test_03 | AC | 2 ms | 3500 KB |
test_04 | AC | 3 ms | 3644 KB |
test_05 | AC | 2 ms | 3496 KB |
test_06 | AC | 2 ms | 3448 KB |