竞赛
考级
#include <bits/stdc++.h> using namespace std; int main(){ unsigned long long a,b=0; while(cin>>a){ b+=a; } cout<<b; return 0; }
#include<iostream> #include <algorithm> #include <bits/stdc++.h> #include <math.h> #include <cmath> #include<string> #include<cstring> #include<list> #include<map> #include<queue> #include<iterator> #include<stack> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; return 0; }
150****2919
wejhfudhadgufaggfsjgfdshugjhahasdvfjbgdfgadfjsdruwhgdfghjadsfjhadfhdasjgfdahfgajdsfgadsgfsdahjfsajhdasjhgfjk
邓伟翔
seaa
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b; c = a+b; cout << c; } 最后一个变量就是前面两个数的和
某钟
不是,很难吗? #include<iostream>//头文件 using namespace std;//命令空间 int main(){ //主函数 int a,b,c;//创建整数型变量 if(a>=0&&b<=1000000000){ //如果满足a>=0和b<=1000000000的条件,就会执行以下代码 cin>>a>>b; c=a+b; cout<<c; } }
186****4640
这么简单的题,该不会还有人没做出来吧,c++写法,点个赞吧这么简单的题,该不会还有人没做出来吧,c++写法,点个赞吧这么简单的题,该不会还有人没做出来吧,c++写法,点个赞吧
AC来了
A(Hello world!)
yang(Python,半退)
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[n],temp,b[n]; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0;i<n-1;i++) { for(int j=0;j<n-1-i;j++) { if(a[j]>a[j+1]) { temp=a[j]; a[j]=a[j+1]; a[j+1]=temp; } } } int p=0; for(int i=0;i<n;i++) { if(a[i]%2==1) {b[p]=a[i];p++;} } for(int i=0;i<p-1;i++) { cout<<b[i]<<","; } cout<<b[p-1]<<endl; return 0; }
༺ཌༀཉི旭日东升༃ༀད
🎈🎈🎈🎈🎈🎈🎈🎈
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin>>a>>b; cout<<a+b; return 0; }
༺ཌༀ◎开◎ༀད༻
#include<iostream> using namespace std; int main(){ int a,b; cin >> a >> b; cout << a+b; return 0; }
陈天翊
#include<bits/stdc++.h> using namespace std; int main (){ int n,k; cin >> n ; cin >> k; cout << n+k; return 0; }
180****9512
programmerGYM
166****3319
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a+b; }
许宸硕
共596条