Submission #56237259
Source Code Expand
// -*- coding:utf-8-unix -*-
use proconio::input;
fn main() {
input! {
o: String,
e: String,
}
// zip だと短い方に合わせるので、oが長い場合は別途考慮
let result = o
.chars()
.zip(e.chars())
.fold(String::new(), |mut acc, (oi, ei)| {
acc.push(oi);
acc.push(ei);
acc
});
if o.len() > e.len() {
println!("{}{}", result, o.chars().last().unwrap());
} else {
println!("{}", result);
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - ∵∴∵ |
| User | homura10059 |
| Language | Rust (rustc 1.70.0) |
| Score | 200 |
| Code Size | 561 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 2076 KiB |
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 | 1788 KiB |
| 0_001.txt | AC | 1 ms | 2076 KiB |
| rnd0.txt | AC | 0 ms | 1952 KiB |
| rnd1.txt | AC | 1 ms | 1916 KiB |
| rnd2.txt | AC | 1 ms | 1888 KiB |
| rnd3.txt | AC | 0 ms | 1888 KiB |
| short1.txt | AC | 1 ms | 1960 KiB |
| short2.txt | AC | 0 ms | 2052 KiB |
| short3.txt | AC | 1 ms | 2064 KiB |
| wf.txt | AC | 1 ms | 1984 KiB |