Logo
(追記) (追記ここまで)

21945번 - Palindromes 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB27319818173.279%

문제

Emilian is a very smart boy who loves palindromes. Radu knows this fact so he gifted his friend a set of n integers, some being palindromes and other not. Emilian was very happy so he asked himself more questions and he will apriciate if you help him answering one of them. What is the sum of all palindrome integers from the set received from Radu?

Given a set of n integers calculate the sum of the palindrome integers.

입력

The first line contains the integer n and the second line contains n integers.

출력

The first line contains only one integer representing the sum of all palindrome integers.

제한

  • 1 ≤ n ≤ 1,000,000
  • All integers from the set are less than 1,000,000,000

예제 입력 1

5
1 13 22 121 45

예제 출력 1

144

힌트

출처

Contest > infO(1) Cup > infO(1) Cup 2018 National Round 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /