#include<iostream> using namespace std; int main() { char str[10101]; while(cin>>str) { if(str[0]=='0') break; int i; int m=0; for(i=0;str[i]!='\0';i++) { m=(m*10+(str[i]-'0'))%17; } if(m==0) cout<<1<<endl; else cout<<0<<endl; } return 0; }
0.0分
3 人评分
A+B for Input-Output Practice (VII) (C++代码)浏览:519 |
A+B for Input-Output Practice (VI) (C语言代码)浏览:413 |
【蟠桃记】 (C++代码)(递归计算)浏览:686 |
C二级辅导-求偶数和 (C语言代码)浏览:495 |
C语言考试练习题_保留字母 (C语言代码)浏览:568 |
K-进制数 (C++代码)浏览:732 |
简单的a+b (C语言代码)浏览:479 |
简单的a+b (C语言代码)浏览:558 |
【明明的随机数】 (C++代码)浏览:629 |
上车人数 (C语言代码)浏览:636 |