跳到正文

个人记录

111

nikodo约 2 分钟
原文
文章信息与版本

文章信息

发布
2024年12月21日
收录
2025年12月12日
更新
2026年11月15日
篇幅
约 2 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x,x1,x2;
    cin>>x;
    if(x<70){
        cout<<"no\n";fflush(stdout);
        cin>>x1;
        if(x1<70)
        {
        	cout<<"no\n";fflush(stdout);
        	cin>>x2;
		}
    }
    cout<<"yes\n";fflush(stdout);
    return 0;
}
//选钻石0
C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x,x1,x2,x3,x4,x5,x6;
    cin>>x;
    if(x<85){
        cout<<"no\n";fflush(stdout);
        cin>>x1;
        if(x1<83)
        {
        	cout<<"no\n";fflush(stdout);
        	cin>>x2;
        	if(x2<83)
        	{
        	    cout<<"no\n";fflush(stdout);
        	    cin>>x3;
        	    if(x3<83)
        	    {
        	        cout<<"no\n";fflush(stdout);
        	        cin>>x4;
        	        if(x4<83)
        	        {
        	            cout<<"no\n";fflush(stdout);
        	            cin>>x5;
        	            if(x5<83)
        	            {
        	                cout<<"no\n";fflush(stdout);
        	                cin>>x6;
        	            }
        	        }
        	    }
        	}
		}
    }
    cout<<"yes\n";fflush(stdout);
    return 0;
}
//选钻石1
原文