#include <iostream>
#include <Windows.h>
using namespace std;
const string hong= "\033[31m";      
const string lv = "\033[32m";    
const string huang = "\033[1;33m";     
const string lan = "\033[34m";      
const string zi = "\033[35m";    
const string shenzi = "\033[2;35m";    
const string qing = "\033[36m";     
const string bai = "\033[2;37m";     
const string reset = "\033[0m";    
 
int main() {
	
    for(long long i = 1; i <= 1; i++)
    {
    	cout<<hong
    	    <<"    **********"<<"         *********"<<"          **********"<<"      ************"<<endl
    	    <<"\033[33m"
    		<<"  *************"<<"      ***       ***"<<"      *************"<<"     ***"<<endl
    		<<huang
    		<<" ****       ***"<<"     ***         ***"<<"    ****       ***"<<"     ***"<<endl
    		<<lv
    		<<" ***       ****"<<"     ***         ***"<<"    ***       ****"<<"     ** ********"<<endl
    		<<qing
    		<<"          ****"<<"      ***         ***"<<"             ****"<<"       **       ***"<<endl
    		<<lan
    		<<"         ****"<<"       ***         ***"<<"            ****"<<"                  ***"<<endl
    		<<"        ****"<<"        ***         ***"<<"           ****"<<"                   ***"<<endl
    		<<zi
    		<<"    *****"<<"            ***       ***"<<"       *****"<<"           **        ***"<<endl
    		<<"  ***************"<<"      *********"<<"        ***************"<<"    ***********"<<reset<<endl;
    		cout<<endl;
	}
	
    return 0;
}

7 条评论

  • @ 2025-1-13 10:07:45

    @王梓宸:对不起啊我把头文件打成注释了

    • @ 2025-1-11 17:28:10
      
      #include<bits/stdc++.h>
      #include<windows.h>
      using namespace std;
      const string hong= "\033[31m";      
      const string lv = "\033[32m";    
      const string huang = "\033[1;33m";     
      const string lan = "\033[34m";      
      const string zi = "\033[35m";    
      const string shenzi = "\033[2;35m";    
      const string qing = "\033[36m";
      const string bai = "\033[2;37m";     
      const string reset = "\033[0m";    
       
      int main() {
      	
          for(long long i = 1; i <= 1; i++)
          {
          	cout<<hong
          	    <<"    **********"<<"         *********"<<"          **********"<<"      ************"<<endl
          	    <<"\033[33m"
          		<<"  *************"<<"      ***       ***"<<"      *************"<<"     ***"<<endl
          		<<huang
          		<<" ****       ***"<<"     ***         ***"<<"    ****       ***"<<"     ***"<<endl
          		<<lv
          		<<" ***       ****"<<"     ***         ***"<<"    ***       ****"<<"     ** ********"<<endl
          		<<qing
          		<<"          ****"<<"      ***         ***"<<"             ****"<<"       **       ***"<<endl
          		<<lan
          		<<"         ****"<<"       ***         ***"<<"            ****"<<"                  ***"<<endl
          		<<"        ****"<<"        ***         ***"<<"           ****"<<"                   ***"<<endl
          		<<zi
          		<<"    *****"<<"            ***       ***"<<"       *****"<<"           **        ***"<<endl
          		<<"  ***************"<<"      *********"<<"        ***************"<<"    ***********"<<reset<<endl;
          		cout<<endl;
      	}
      	
          return 0;
      }
      
      🕊️ 1
      🤣 1
      👀 1
      👍 1
      • @ 2025-1-11 15:48:32

        666

        • @ 2025-1-10 15:08:22

          @王梓宸:我这里能运行,版本问题,dev有调试

          🤡 1
          👎 1
          😕 1
          • @ 2025-1-3 21:29:08

            真的,@尹**你的运行不了

            • @ 2025-1-3 21:27:36
              #include <Windows.h>
              #include<string>
              #include<bits/stdc++.h>
              using namespace std;
              const string hong= "\033[31m";      
              const string lv = "\033[32m";    
              const string huang = "\033[1;33m";     
              const string lan = "\033[34m";      
              const string zi = "\033[35m";    
              const string shenzi = "\033[2;35m";    
              const string qing = "\033[36m";     
              const string bai = "\033[2;37m";     
              const string reset = "\033[0m";    
               
              int main() {
              	
                  for(long long i = 1; i <= 1; i++)
                  {
                  	cout<<hong
                  	    <<"    **********"<<"         *********"<<"          **********"<<"      ************"<<endl
                  	    <<"\033[33m"
                  		<<"  *************"<<"      ***       ***"<<"      *************"<<"     ***"<<endl
                  		<<huang
                  		<<" ****       ***"<<"     ***         ***"<<"    ****       ***"<<"     ***"<<endl
                  		<<lv
                  		<<" ***       ****"<<"     ***         ***"<<"    ***       ****"<<"     ** ********"<<endl
                  		<<qing
                  		<<"          ****"<<"      ***         ***"<<"             ****"<<"       **       ***"<<endl
                  		<<lan
                  		<<"         ****"<<"       ***         ***"<<"            ****"<<"                  ***"<<endl
                  		<<"        ****"<<"        ***         ***"<<"           ****"<<"                   ***"<<endl
                  		<<zi
                  		<<"    *****"<<"            ***       ***"<<"       *****"<<"           **        ***"<<endl
                  		<<"  ***************"<<"      *********"<<"        ***************"<<"    ***********"<<reset<<endl;
                  		cout<<endl;
              	}
              	
                  return 0;
              }
              
              
              
              • @ 2025-1-3 21:25:45

                #include<bits/stdc++.h> using namespace std; int a[2147483]; int check(int l,int r,int x){ int m,ans=-1; while(l<=r){ m=(l+r)/2; if(x==a[m]){ ans=m; l=m+1; } if(x<a[m]){ r=m-1; } else{ l=m+1; } } return ans; } int main(){ int n,q; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } cin>>q; while(q--){ int x; cin>>x; cout<<check(1,n,x)<<" "; } return 0; }

                • 1

                信息

                ID
                116
                时间
                1000ms
                内存
                256MiB
                难度
                8
                标签
                递交数
                56
                已通过
                9
                上传者