BETA

Difficulty Level: Basic

Submissions: 1595 Accuracy:

30.22%

Check if divisible by 11
       

Given a number (n) , the task is to find if its divisible by 11 or not. 

Examples:

Input : n = 76945
Output : 1

Input  : n = 1234567589333892
Output : 1

Input  : n = 363588395960667043875487
Output : 0


Input:
The first line of input contains an  integer T denoting the no of test cases. Then T test cases follow. Each test case contains an numer x.

Output:
For each test case in a new line print 1 if n is divisible by 11 else print 0.

Constraints:
1<=T<=100
1<=N<=10^1000+5

Example:
Input:

2
76945
363588395960667043875487
Output:
1
0

** For More Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.