0分求助(本人较菜)
查看原帖
0分求助(本人较菜)
1133130
chenny730楼主2024/5/16 21:22
#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) 
{
	int a,c,d,e,g,h,i,j,k,m,ans=0;
	char b,f,l;
	cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>k>>l>>m;
	ans=a*1+c*2+d*3+e*4+g*5+h*6+i*7+j*8+k*9;
	if(ans%11==m)
	{
		cout<<"Right";
	}
	else
	{
		cout<<a<<b<<c<<d<<e<<f<<g<<h<<i<<j<<k<<l<<ans%11;
	}
	return 0;
}
2024/5/16 21:22
加载中...