为什么对不了?
查看原帖
为什么对不了?
1400450
wangshengchen楼主2024/11/9 10:19
#include<iostream>
#include<cmath>
using namespace std;
string s;
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cin>>s;
	if(s=="Monday") cout<<5<<"\n";
	if(s=="Tuesday") cout<<4<<"\n";
	if(s=="Wednesday") cout<<3<<"\n";
	if(s=="Thursday") cout<<2<<"\n";
	if(s=="Friday") cout<<1<<"\n";
	else cout<<0<<"\n";
    return 0;
} 
2024/11/9 10:19
加载中...