[백준] 24553 팰린드롬 게임

0

백준

목록 보기
262/271
post-thumbnail
post-custom-banner

[백준] 24553 팰린드롬 게임

#include <iostream>
#include <algorithm>
using namespace std;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL); cout.tie(NULL);

	int T;
	cin >> T;
	while (T--) {
		long long num;
		cin >> num;
		
		if (num % 10) cout << "0\n";
		else cout << "1\n";
	}
	
	return 0;
}

profile
Be able to be vulnerable, in search of truth

0개의 댓글