竞赛
考级
1
BOND MF DOUBLE G
直接上代码:
Yvan
不说废话,直接上代码
拉布拉多
简简单单~~~
150****0889
#include<stdio.h> #include<iostream> using namespace std; int a,b,c; int main(){ scanf("%d",&a); scanf("%d",&b); c=a+b; printf("%d",c); return 0; }
114514
#include<iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b; return 0; }
KFCKUN
范特东
#include<bits/stdc++.h> using namespace std; int main(){ int a,b;//定义我们要相加的数 cin>>a>>b;//输入 cout<<a+b;//输出这两个数的和 return 0; }
BLGttg
使用define把关键字定义 压 缩 代 码
一只Merry
我保证这是最短的代码
风衾
HXB
唐可可本可
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b<<endl; }
鏡流です
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; }
菜
直接输出3,OK?
阿空
给大家整个花活
ssehx688
终于可以写一份A+B这么难的题的题解了! 竟然没有看见写LCT的题解? Tree君会很伤心的! 蒟蒻为了不让LCT伤心于是我来一份LCT的A+B题解吧! 送上代码:
奶酪
作者的话: 欢迎你进入C++或Python的程序世界,欢迎来到ACGO,迈出你的第一步! ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 分析 > 题目:这是一道入门题,计算a+b的和。 思路 在C++和Python中,我们都可以在输出时候直接计算,例如这样: 用 C++ 的朋友请注意,输入前请提前定义变量;用 Python 的朋友请注意,Python 做 ACGO 的题通常来说都是需要加上.split来分隔空格的。 另外,C++ 中这题是可以用 int 类型的,我们可以看到题目里给出的数据范围是 0<=a,b<=10000000000<=a,b<=10000000000<=a,b<=1000000000,最大数据也才 10910^9109,还没达到 C++ 中 int 类型的上限 231−12^{31}-1231−1,不需要使用 long long 类型。 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 代码 C++ PYTHON ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2024年09月08日 版本1
#include<iostream> #include<algorithm> #include<string> #include<queue> #include<stack> #include<iomanip>//头文件 using namespace std; int main() { int a, b;//定义a和b cin >> a >> b;//输入 cout << a + b; return 0;//结束 }
应急食品至尊豪华精装wzy限量版
龙勃丞ДжазифанъЯЛДч
共596条