3021:【例6.1】 比赛成绩
/*
3021:【例6.1】 比赛成绩
http://bas.ssoier.cn:8086/problem_show.php?pid=3021
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int a,b,c,d,ans;
cin>>a>>b>>c>>d;
ans=a+b+c+d;
cout<<ans<<endl;
return 0;
}
3022:【例6.2】捡石头
/*
3022:【例6.2】捡石头
http://bas.ssoier.cn:8086/problem_show.php?pid=3022
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int a,b,c,ans;
cin>>a>>b>>c;
ans=20-a-b-c;
cout<<ans<<endl;
return 0;
}
3023:【例6.3】 套盒子
/*
3023:【例6.3】 套盒子
http://bas.ssoier.cn:8086/problem_show.php?pid=3023
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int a,b,c,ans;
cin>>a>>b>>c;
ans=a+a*b+a*b*c;
cout<<ans<<endl;
return 0;
}
3024:练6.1 植树造林
/*
3024:练6.1 植树造林
http://bas.ssoier.cn:8086/problem_show.php?pid=3024
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
long long a,b;
cin>>a>>b;
cout<<"总的棵数:"<<a*b<<endl;
return 0;
}
3025:练6.2 兴趣小组
#include <iostream>
using namespace std;
int main(void)
{
int n,a,b,c;
cin>>n>>a>>b>>c;
cout << n-a-b+c << endl;
return 0;
}
3026:练6.3 整数的和
/*
3026:练6.3 整数的和
http://bas.ssoier.cn:8086/problem_show.php?pid=3026
*/
#include <iostream>
using namespace std;
int main(void)
{
int a,b,c;
cin>>a>>b>>c;
cout << a+b+c << endl;
return 0;
}
3027:【例7.1】保留3位小数
/*
3027:【例7.1】保留3位小数
http://bas.ssoier.cn:8086/problem_show.php?pid=3027
*/
#include <iostream>
using namespace std;
int main(void)
{
double x;
cin>>x;
printf("%.3f",x);
return 0;
}
3028:【例7.2】与圆相关的计算
#include <stdio.h>
#include <stdlib.h>
int main()
{
double r;
scanf("%lf",&r);
printf("%.4lf %.4lf %.4lf",2*r,2*3.14159*r,3.14159*r*r);
return 0;
}
3029:练7.1 埃及金字塔
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,h;
float ans;
cin>>a>>h;
//scanf("%lf%lf",&a,&b);
ans=a*h/2.0;
//printf("s=%f\n",ans);
cout<<"s="<<ans<<endl;
return 0;
}
3030:练7.2 保留12位小数
/*
3030:练7.2 保留12位小数
http://bas.ssoier.cn:8086/problem_show.php?pid=3030
*/
#include <iostream>
using namespace std;
int main(void)
{
double x;
cin>>x;
printf("%.12lf",x);
return 0;
}
信息学奥赛一本通·编程启蒙 C++版 3001-3010(10题)
信息学奥赛一本通·编程启蒙 C++版 3011-3020(10题)
信息学奥赛一本通 编程启蒙C++版》3001 -- 3020
《信息学奥赛一本通 编程启蒙C++版》3001-3030
《信息学奥赛一本通 编程启蒙C++版》3031-3099
《信息学奥赛一本通 编程启蒙C++版》3390-3395、3451-3465
《信息学奥赛一本通 编程启蒙C++版》3021 -- 3040
《信息学奥赛一本通 编程启蒙C++版》3041 -- 3060
《信息学奥赛一本通 编程启蒙C++版》3061 -- 3080
《信息学奥赛一本通 编程启蒙C++版》3081 -- 3100
《信息学奥赛一本通 编程启蒙C++版》3101 -- 3120
《信息学奥赛一本通 编程启蒙C++版》3100-3154
《信息学奥赛一本通 编程启蒙C++版》3451 -- 3466
信息学奥赛一本通-编程启蒙 第1-17集
C++版-----信息学奥赛一本通-----编程启蒙(1-19)
《信息学奥赛一本通编程启蒙(C++版)》题库题解
《信息学奥赛一本通 编程启蒙C++版》第1课 -- 第86课
信息学奥赛一本通-编程启蒙 解题目录(部分)
一本通编程启蒙 题解(2023.11.20)
信息学奥赛一本通题解、题目详解、视频集