Submission #31814908


Source Code Expand

use proconio::input;

fn main() {
    input! {
        n: String,
    };
    let s = n.trim_end_matches('0').to_owned();
    let t = s.chars().rev().collect::<String>();
    let ans = s == t;
    println!("{}", if ans { "Yes" } else { "No" });
}

Submission Info

Submission Time
Task B - Palindrome with leading zeros
User bouzuya
Language Rust (1.42.0)
Score 200
Code Size 246 Byte
Status AC
Exec Time 7 ms
Memory 2164 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 25
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, hand_13.txt, hand_14.txt, hand_15.txt, hand_16.txt, hand_17.txt, hand_18.txt, hand_19.txt, random_01.txt, random_02.txt, random_03.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hand_01.txt AC 7 ms 2060 KiB
hand_02.txt AC 2 ms 2148 KiB
hand_03.txt AC 2 ms 2124 KiB
hand_04.txt AC 2 ms 2148 KiB
hand_05.txt AC 1 ms 2140 KiB
hand_06.txt AC 2 ms 2164 KiB
hand_07.txt AC 2 ms 2092 KiB
hand_08.txt AC 2 ms 2064 KiB
hand_09.txt AC 2 ms 2012 KiB
hand_10.txt AC 2 ms 2020 KiB
hand_11.txt AC 1 ms 2096 KiB
hand_12.txt AC 7 ms 2040 KiB
hand_13.txt AC 2 ms 2076 KiB
hand_14.txt AC 2 ms 2092 KiB
hand_15.txt AC 4 ms 1940 KiB
hand_16.txt AC 3 ms 1928 KiB
hand_17.txt AC 2 ms 2144 KiB
hand_18.txt AC 2 ms 2124 KiB
hand_19.txt AC 2 ms 2028 KiB
random_01.txt AC 1 ms 2080 KiB
random_02.txt AC 2 ms 2032 KiB
random_03.txt AC 1 ms 2068 KiB
sample_01.txt AC 1 ms 2000 KiB
sample_02.txt AC 2 ms 1976 KiB
sample_03.txt AC 2 ms 1936 KiB