提出 #21698208


ソースコード 拡げる

n = int(input())
 
while n % 10 == 0 and n > 0: 
  n //= 10
  
print("Yes" if str(n) == str(n)[::-1] else "No")

提出情報

提出日時
問題 B - Palindrome with leading zeros
ユーザ McDic
言語 Python (3.8.2)
得点 200
コード長 116 Byte
結果 AC
実行時間 24 ms
メモリ 9056 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 25
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
hand_01.txt AC 19 ms 8816 KiB
hand_02.txt AC 20 ms 8804 KiB
hand_03.txt AC 17 ms 9048 KiB
hand_04.txt AC 17 ms 8804 KiB
hand_05.txt AC 20 ms 8868 KiB
hand_06.txt AC 19 ms 8872 KiB
hand_07.txt AC 23 ms 9056 KiB
hand_08.txt AC 20 ms 8820 KiB
hand_09.txt AC 22 ms 8804 KiB
hand_10.txt AC 18 ms 8928 KiB
hand_11.txt AC 17 ms 8992 KiB
hand_12.txt AC 19 ms 8976 KiB
hand_13.txt AC 19 ms 8996 KiB
hand_14.txt AC 18 ms 8800 KiB
hand_15.txt AC 17 ms 9052 KiB
hand_16.txt AC 20 ms 9048 KiB
hand_17.txt AC 17 ms 8804 KiB
hand_18.txt AC 17 ms 8976 KiB
hand_19.txt AC 20 ms 8804 KiB
random_01.txt AC 21 ms 9048 KiB
random_02.txt AC 22 ms 8804 KiB
random_03.txt AC 21 ms 8872 KiB
sample_01.txt AC 18 ms 8820 KiB
sample_02.txt AC 24 ms 8824 KiB
sample_03.txt AC 19 ms 8804 KiB