Submission #3006232
Source Code Expand
use std::io::*; use std::str::FromStr; fn read<T: FromStr>() -> T { let stdin = stdin(); let stdin = stdin.lock(); let token: String = stdin .bytes() .map(|c| c.expect("failed to read char") as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect(); token.parse().ok().expect("failed to parse token") } #[allow(non_snake_case, unused_variables)] fn main() { let S: String = read(); let ans = &S[0..S.len()-8].to_string(); println!("{}", ans); }
Submission Info
Submission Time | |
---|---|
Task | A - XXFESTIVAL |
User | semimaru |
Language | Rust (1.15.1) |
Score | 100 |
Code Size | 574 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 | sample-01.txt, sample-02.txt, sample-03.txt |
All | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 2 ms | 4352 KB |
01-02.txt | AC | 2 ms | 4352 KB |
01-03.txt | AC | 2 ms | 4352 KB |
01-04.txt | AC | 2 ms | 4352 KB |
01-05.txt | AC | 2 ms | 4352 KB |
01-06.txt | AC | 2 ms | 4352 KB |
01-07.txt | AC | 2 ms | 4352 KB |
sample-01.txt | AC | 2 ms | 4352 KB |
sample-02.txt | AC | 2 ms | 4352 KB |
sample-03.txt | AC | 2 ms | 4352 KB |