大佬急救,70!!
查看原帖
大佬急救,70!!
1335801
Dream__Time楼主2024/11/18 11:50

为什么70?
蒟蒻求助
达佬,源题载这藕~

#include<bits/stdc++.h>
using namespace std;
string a;
int x=0;
int main()
{
	cin>>a;
	if(a[0]!='M')
	{
		cout<<"1 1 1 1 1";
		return 0;
	}
	for(int i=a.size()-1;i>=3;i--)
	{
		if(a[i]>='0' && a[i]<='9')
		{
			x=a[i]-'0';
			break;
		}
	}
	if(x==1 || x==9) cout<<"1 0 0 0 0";
	else if(x==2 || x==8) cout<<"0 1 0 0 0";
	else if(x==3 || x==7) cout<<"0 0 1 0 0";
	else if(x==4 || x==6) cout<<"0 0 0 1 0";
	else cout<<"0 0 0 0 1";
	return 0;
 } 

感蟹~❤
大佬,加我吧~

2024/11/18 11:50
加载中...