5 条题解
- 1
信息
- ID
- 3482
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 3
- 标签
- 递交数
- 48
- 已通过
- 28
- 上传者
手把手教你做这题:
#include <bits/stdc++.h>//这是万能头文件,新手在写作业时建议把这行改成:#include <iostream>
using namespace std;//命名空间,可以不写,但写了更简单
int main(){//主函数,必写
int a = 10,b = 20;//感觉能不写
cout << a + b;//意思是显示出10 + 20的和
return 0;//能省略,但比赛必写语句,意为停止程序
}
懂了吗,不懂在评论里问我
这种题应该没人错吧
# include <bits/stdc++.h>
using namespace std;
int main(){
cout<<30<<endl;
return 0;
}
#include <bits/stdc++.h>//万能头文件
using namespace std;//命名空间
int main(){//主函数入口
cout<<"30";
return 0;//主函数出口
}