竞赛
考级
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; }
grey
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; return 0; }
༺ཌༀ༒死神渡鸦༒ༀཌ༻
我不明白,明明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; }
哈哈哈(互关)
这题特别简单,代码如下
龙卷风
#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!)
🎈🎈🎈🎈🎈🎈🎈🎈
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin>>a>>b; cout<<a+b; return 0; }
松饼小队 Sapnap
共736条