- ISBN号码
- 2016-10-05 14:33:40 @
妈的智障
3 条评论
-
Endless_horizon LV 7 @ 2016-11-22 23:31:43
...
-
2016-11-04 15:29:17@
#include <iostream>
using namespace std;
char a[13];int s;
int main(int argc, char *argv[]) {
cin>>a;
s=(a[0]-'0')*1+(a[2]-'0')*2+(a[3]-'0')*3+(a[4]-'0')*4+(a[6]-'0')*5+
(a[7]-'0')*6+(a[8]-'0')*7+(a[9]-'0')*8+(a[10]-'0')*9;
s=s%11;
if(s==a[12]-'0')cout<<"Right";
else if(s==10){
if(a[12]=='X')cout<<"Right";
else {a[12]='X';cout<<a;}
}
else{a[12]=(char)(s+'0');cout<<a;}
return 0;
} -
2016-10-05 15:08:12@
…………
- 1