Submission #34269326
Source Code Expand
use proconio::{
input,
marker::{Chars, Usize1},
};
fn main() {
input! {
mut s: Chars,
a: Usize1,
b: Usize1,
};
s.swap(a, b);
let ans = s.into_iter().collect::<String>();
println!("{}", ans);
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - chukodai |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 100 |
| Code Size | 246 Byte |
| Status | AC |
| Exec Time | 5 ms |
| Memory | 2196 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, example0.txt, example1.txt, example2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 5 ms | 2196 KiB |
| 001.txt | AC | 2 ms | 2056 KiB |
| 002.txt | AC | 3 ms | 2100 KiB |
| 003.txt | AC | 3 ms | 2084 KiB |
| 004.txt | AC | 1 ms | 2060 KiB |
| 005.txt | AC | 1 ms | 2084 KiB |
| 006.txt | AC | 1 ms | 2004 KiB |
| 007.txt | AC | 1 ms | 2036 KiB |
| 008.txt | AC | 1 ms | 2040 KiB |
| 009.txt | AC | 1 ms | 2012 KiB |
| 010.txt | AC | 1 ms | 2060 KiB |
| 011.txt | AC | 1 ms | 1912 KiB |
| 012.txt | AC | 1 ms | 2024 KiB |
| 013.txt | AC | 2 ms | 2084 KiB |
| example0.txt | AC | 1 ms | 2116 KiB |
| example1.txt | AC | 2 ms | 2036 KiB |
| example2.txt | AC | 2 ms | 2044 KiB |