Submission #19399821


Source Code Expand

Copy
use proconio::input;
use proconio::marker::Chars;

fn main() {
    input! {
        s: Chars,
    };
    let n = s.len();
    let ans = s[0..n - "FESTIVAL".len()].iter().collect::<String>();
    println!("{}", ans);
}

Submission Info

Submission Time
Task A - XXFESTIVAL
User bouzuya
Language Rust (1.42.0)
Score 100
Code Size 218 Byte
Status AC
Exec Time 7 ms
Memory 2152 KB

Judge Result

Set Name sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
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 7 ms 2052 KB
01-02.txt AC 2 ms 2148 KB
01-03.txt AC 6 ms 2020 KB
01-04.txt AC 1 ms 1996 KB
01-05.txt AC 2 ms 2048 KB
01-06.txt AC 4 ms 2152 KB
01-07.txt AC 2 ms 2060 KB
sample-01.txt AC 2 ms 1976 KB
sample-02.txt AC 2 ms 2088 KB
sample-03.txt AC 2 ms 2064 KB