171、3115:【例20.3】 0与1
172、3116:练20.1 适合晨练
/*
例3.4 输入温度t的值,判断是否适合晨练。(25<=t<=30,则适合晨练ok,否则不适合no)
*/
#include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
if ((t>=25) &&(t<=30))
{
cout<<"ok!\n";
}
else
{
cout<<"no!\n";
}
return 0;
}
/*
2054:【例3.4】适合晨练
http://ybt.ssoier.cn:8088/problem_show.php?pid=2054
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int t;
cin>>t;
if( t>=25 && t<=30 )
{
cout<<"ok!"<<endl;
}
else
{
cout<<"no!"<<endl;
}
return 0;
}
173、3117:练20.2 判断是否为两位数
/*
NOI / 1.4编程基础之逻辑表达式与条件分支
06判断是否为两位数 2021.11.14 AC
http://noi.openjudge.cn/ch0104/solution/31321211/
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
if( 10<=a && 99>=a ) cout<<"1";
else cout<<"0";
return 0;
}
/*
1044:判断是否为两位数
http://ybt.ssoier.cn:8088/problem_show.php?pid=1044
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int x;
cin>>x;
if(x>=10 && x<=99 )
{
cout<<"1"<<endl;
}
else
{
cout<<"0"<<endl;
}
return 0;
}
174、3118:练20.3 开灯关灯
175、3119:练20.4 判断点在第几象限
176、922.中间数 ( 课程8) 难度:1
177、923.判断闰年 (课程8) 难度:1
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
if( a%4==0 && a%100!=0 || a%400==0 )
{
cout<<"yes"<<endl;
}
else
{
cout<<"no"<<endl;
}
return 0;
}
178、667.栏杆(魔法学院第10课) 难度:2
int main(){
p.rt(90).up();
p.rr(20,20,10).fd(20);
p.ee(10,10,14).fd(20);
p.ee(10,10,14).fd(20);
p.rr(20,20,10).fd(20);
p.ee(10,10,14).fd(20);
p.ee(10,10,14).fd(20);
p.rr(20,20,10).fd(20);
p.ee(10,10,14).fd(20);
p.ee(10,10,14).fd(20);
p.rr(20,20,10).fd(20);
p.ee(10,10,14).fd(20);
p.ee(10,10,14).fd(20);
p.rr(20,20,10).fd(20);
p.ee(10,10,14).fd(20);
p.ee(10,10,14).fd(20);
p.rr(20,20,10).fd(20);
return 0;
}
179、72.三角形绕线 (魔法学院第11课)
180、73.选择角度 (魔法学院第11课)
程序猿的数学:scratch篇
少儿编程:C++绘图相关书籍篇
宝宝的编程系列书籍
宝宝的物理学系列
宝宝的数学书籍
推荐几本微积分入门书籍
线性代数、概率 入门书籍推荐
组合数学入门书籍推荐
群论入门书籍推荐
微积分 学习资料集
线性代数学习视频集