答案

陈开远  •  1天前


你被骗了

 

 

 

 

 

 

 

 

 

 

 

 

 

别看了

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

真没有

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

我就说吧


评论:

#include<iostream>  // cin\cout\endl
#include<cstdio>    //scanf()\printf()
#include<cstring>   // strcpy()\strcat()\strcmp()\strlen()\memset()

#include<cmath>  //sqrt()\pow()\abs()\ceil()\floor()\max()\min() 
using namespace std;
int main(){
   long long n;
   cin>>n;
   for(int i=0;i<n;i++){
       long long m;
       cin>>m;
       int a,sumi=0;
       for(int j=0;j<m;j++){
           cin>>a;
           sumi=sumi+a;
       }
       cout<<sumi<<endl;
   }
   return 0;
}


陈开远  •  1天前

哈哈哈


陈开远  •  1天前

#include<bits/stdc++.h> 
using namespace std;  
int y[32]; 
int cnt=0;  
int main(){  
   int n;  
   cin>>n;  
   while(1){  
       int yu=n%2; 
       y[cnt]=yu;  
       cnt++; n=n/2; 
       if(n==0){  
           break;  
       }  
   }  
   for(int i=cnt-1;i>=0;i--){ 
       cout<<y[i];  
   }  
   return 0;  
}


陈开远  •  1天前

到底哪个是对的呢?


陈开远  •  1天前

答案是第2个


陈开远  •  1天前

#include<bits/stdc++.h> 

using namespace std; 

int main(){

 int a,b; 

cin>>a>>b; 

int maxx; 

if (a>b){

 maxx=a; 

}

 else{ 

maxx=b;

 } 

cout<<maxx*maxx<<endl; 

return 0

 }


陈开远  •  9小时前