竞赛
考级
我不明白,明明12行就能完成,为什么会有人输53行代码,黄埔军校电子分校正式开课,先创造变量(例:num1/2 area)随后输入(cin)中间空格分别存入两个变量,最后将结果存入另外的变量并输出。 #include <iostream> using namespace std; int main(){ #include <iostream> using namespace std; int main(){ } 好了,优势在我,下课!
186****6528
这道题非常简单 代码如下 #include <iostream> using namespace std; int main(){ long long a,b; cin>>a>>b; cout<<a+b; return 0; }
137****6601
如下
198****3195
#include<iostream> using namespace std; int main(){ int a,b;//定义两个整数a和b cin>>a>>b;//输入a和b cout<<a+b;//输出a+b的和 return 0; }
天之神--复仇者--NeZha
这题特别简单,代码如下
158****1516
#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; }
༺ཌༀཉི旭日东升༃ༀད
🎈🎈🎈🎈签名正好50字
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin>>a>>b; cout<<a+b; return 0; }
༺ཌༀ◎开◎ༀད༻
共599条