最短代码,不服者来战
2行
#include<iostream> int main(){ int n,a[105],sum=0;std::cin>>n;for(int i=1;i<=n;i++){std::cin>>a[i];sum+=a[i];}std::cout<<sum;}
e... ...
r23r32r23r23r23r23r23r32r32r23r2r2332
#include
88B
#include<iostream> int n,t,s;main(){for(std::cin>>n;n--;s+=t)std::cin>>t;std::cout<<s;}
89B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include<iostream> int n,t,s;main(){std::cin>>n;for(;n--;s+=t)std::cin>>t;std::cout<<s;}
91B
#include<iostream> int n,t,s;main(){std::cin>>n;while(n--&&std::cin>>t)s+=t;std::cout<<s;}
95B
#include<iostream> int n,t,s;int main(){std::cin>>n;while(n--&&std::cin>>t)s+=t;std::cout<<s;}
96B
#include<iostream> int n,t,s;int main(){std::cin>>n;while(n--){std::cin>>t;s+=t;}std::cout<<s;}
98B
#include<iostream> int main(){int n,t,s=0;std::cin>>n;while(n--){std::cin>>t;s+=t;}std::cout<<s;}
就少了一内内
共 17 条回复
e... ...r23r32r23r23r23r23r23r32r32r23r2r2332
#include
88B
89B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
91B
95B
96B
98B
就少了一内内