7 条题解

  • 2
    @ 2024-3-19 22:03:14
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	char i;
    	for(i='a';i<='z';i++)
    	cout << i << ' ';
    	cout << endl;
    	i = 'Z';
    	while(i>='A'){
    		cout << i << ' ';
    		i--;}
    	return 0; 
    }
    
    • 1
      @ 2024-6-22 12:06:34

      #include using namespace std; int main(){ char a,b; for(int i = 0;i<=25;i++){ a = 'a'+i; cout<<a<<" "; } cout<<endl; for(int v = 0;v<=25;v++){ b = 'Z'-v; cout<<b<<" "; } }

      using namespace std;
      int main(){
      	char a,b;
      	for(int i = 0;i<=25;i++){
      		a = 'a'+i;
      		cout<<a<<" ";
      	}
      	cout<<endl;
      	for(int v = 0;v<=25;v++){
      		b = 'Z'-v;
      		cout<<b<<" ";
      	}
      }
      
      • 1
        @ 2024-6-22 11:53:48

        #include<bits/stdc++.h> using namespace std; int main (){ cout<<"a"<<" "<<"b"<<" "<<"c"<<" "<<"d"<<" "<<"e"<<" "<<"f"<<" "<<"g"<<" "<<"h"<<" "<<"i"<<" "<<"j"<<" "<<"k"<<" "<<"l"<<" "<<"m"<<" "<<"n"<<" "<<"o"<<" "<<"p"<<" "<<"q"<<" "<<"r"<<" "<<"s"<<" "<<"t"<<" "<<"u"<<" "<<"v"<<" "<<"w"<<" "<<"x"<<" "<<"y"<<" "<<"z"<<endl; cout<<"Z"<<" "<<"Y"<<" "<<"X"<<" "<<"W"<<" "<<"V"<<" "<<"U"<<" "<<"T"<<" "<<"S"<<" "<<"R"<<" "<<"Q"<<" "<<"P"<<" "<<"O"<<" "<<"N"<<" "<<"M"<<" "<<"L"<<" "<<"K"<<" "<<"J"<<" "<<"I"<<" "<<"H"<<" "<<"G"<<" "<<"F"<<" "<<"E"<<" "<<"D"<<" "<<"C"<<" "<<"B"<<" "<<"A"; return 0; }

        • 0
          @ 2024-6-30 10:57:55
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
          	char i;
              for(i='a';i<='z';i++)   cout << i << ' ';
              cout<<endl;
          	for(i='Z';i>='A';i--)   cout << i << ' ';
          	return 0; 
          }
          
          
          • 0
            @ 2024-6-20 19:46:21

            #include using namespace std; int main(){ char i,I; for(i='a';i<='z';i++) cout << i << " "; cout<<endl; for(I='Z';I>='A';I--) cout<<I<<" "; return 0; }

            • 0
              @ 2024-3-3 10:15:50
              #include<bits/stdc++.h>
              using namespace std;
              int main(){
              	char i;
              	for(i='a';i<='z';i++)
              	cout << i << ' ';
              	cout << endl;
              	i = 'Z';
              	while(i>='A'){
              		cout << i << ' ';
              		i--;}
              	return 0; 
              }
              
              • 1

              信息

              ID
              834
              时间
              1000ms
              内存
              64MiB
              难度
              4
              标签
              递交数
              238
              已通过
              113
              上传者