声明:
题目来源:HOJ 13375(Origin: HNU Contest)
本题为本人与同学讨论做出,仅给出本人的解法。
Multiple of 7
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 127, Accepted users: 62 Problem 13775 : No special judgement
Problem description
Give you an integer such as abab..... with length n. where a,b are digit.1< = a < = 9, 0< = b < = 9. Your task is to answer whether the given integer is multiple of 7.
For example, 3535 ,343,141414 are multiples of 7,and 121,11,2,232 are not.
Input
There are multiple test cases, the first line contain an i