Submission #1679972
Source Code Expand
fn getline() -> String { let mut __ret = String::new(); std::io::stdin().read_line(&mut __ret).ok(); return __ret; } fn main() { let s = getline(); let words = s.trim().split(' '); let ans: Vec<String> = words .map(|s| if s == "Left" { "<".to_string() } else { if s == "Right" { ">".to_string() } else { "A".to_string() } }) .collect(); println!("{}", ans.join(" ")); }
Submission Info
Submission Time | |
---|---|
Task | A - スペース高橋君 |
User | sakaki |
Language | Rust (1.15.1) |
Score | 100 |
Code Size | 535 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 4352 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_0.txt, example_1.txt, example_2.txt |
All | corner_0.txt, corner_1.txt, corner_2.txt, example_0.txt, example_1.txt, example_2.txt, maxrand_0.txt, maxrand_1.txt, maxrand_2.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
corner_0.txt | AC | 2 ms | 4352 KB |
corner_1.txt | AC | 2 ms | 4352 KB |
corner_2.txt | AC | 2 ms | 4352 KB |
example_0.txt | AC | 2 ms | 4352 KB |
example_1.txt | AC | 2 ms | 4352 KB |
example_2.txt | AC | 2 ms | 4352 KB |
maxrand_0.txt | AC | 2 ms | 4352 KB |
maxrand_1.txt | AC | 2 ms | 4352 KB |
maxrand_2.txt | AC | 2 ms | 4352 KB |
random_0.txt | AC | 2 ms | 4352 KB |
random_1.txt | AC | 2 ms | 4352 KB |
random_2.txt | AC | 2 ms | 4352 KB |
random_3.txt | AC | 2 ms | 4352 KB |
random_4.txt | AC | 2 ms | 4352 KB |