摘要:
#include#include#includeint main(){ char str[111]; scanf("%s",str); int len=strlen(str); int sum=0; for(int i=0 ; i=0 ; --i) //再讲结果逆序输出,就是正常的顺序了...
阅读全文
posted @ 2015-02-19 23:32
Evence
阅读(515)
推荐(0)
编辑
摘要:
#include#include#includeint main(){ int weight[17]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2}; char M[15]={'1','0','X','9','8','7','6','5','4','3','2'}; ...
阅读全文
posted @ 2015-02-19 22:55
Evence
阅读(987)
推荐(0)
编辑
摘要:
#include#include#include#includeusing namespace std;int main(){ char arr[1011]; memset(arr,0,sizeof(arr)); scanf("%s",arr); int len=strlen(arr); ...
阅读全文
posted @ 2015-02-19 16:08
Evence
阅读(206)
推荐(0)
编辑