最短代码

dinosaurgy 2019-05-31 22:12:06 2019-05-31 22:19:05 53

最短代码,不服者来战

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;}
{{ vote && vote.total.up }}

共 12 条回复

tctm99
Adeline

呵呵 我就呵呵一笑