Submission #2697937
Source Code Expand
#include<iostream> #include<string> #include<vector> #include<algorithm> #include <cstdlib> using namespace std; int main(){ string o,e; cin >> o >> e; string a; int n; n = o.size(); if(o.size() == e.size()){ for(int i = 0; i < n; i++){ a = a + o.front() + e.front(); o.erase(o.begin()); e.erase(e.begin()); } } else{ for(int i = 0; i < n-1; i++){ a = a + o.front() + e.front(); o.erase(o.begin()); e.erase(e.begin()); } a += o.front(); } cout << a <<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - ∵∴∵ |
User | syakura |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 542 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt |
All | 0_000.txt, 0_001.txt, rnd0.txt, rnd1.txt, rnd2.txt, rnd3.txt, short1.txt, short2.txt, short3.txt, wf.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | AC | 1 ms | 256 KB |
0_001.txt | AC | 1 ms | 256 KB |
rnd0.txt | AC | 1 ms | 256 KB |
rnd1.txt | AC | 1 ms | 256 KB |
rnd2.txt | AC | 1 ms | 256 KB |
rnd3.txt | AC | 1 ms | 256 KB |
short1.txt | AC | 1 ms | 256 KB |
short2.txt | AC | 1 ms | 256 KB |
short3.txt | AC | 1 ms | 256 KB |
wf.txt | AC | 1 ms | 256 KB |