3346:【例60.3】 找素数
3347:练60.1 丢失的数字
3348:练60.2 众数
3349:练60.3 余数个数
3350:练60.4 捉迷藏
/*
第62课 捉迷藏
山上有10个山洞。
10-1--3--6---10
1000次
试编一程序,算一算,兔子尼克躲在几号洞里。
*/
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
bool a[11];
int i,cishu;
//第i个洞没有进
for(i=1;i<=10;i++)
a[i]=true;
i=0;
cishu=1;
//cout<<"first i="<<i<<" cishu="<<cishu<<endl;
while(cishu<=100)
{
//cout<<"000i="<<i<<endl;
i=(i+cishu)%10;
if(i==0)
{
//cout<<"i=0 cishu="<<cishu<<endl;
i=10;
}
a[i]=false;
//cout<<"i="<<i<<endl;
cishu++;
//cout<<"-------------------"<<endl;
}
for(i=1;i<=10;i++)
if( a[i] ) cout<<i<<endl;
return 0;
}
/*
作业:
2037:【例5.4】约瑟夫问题
http://ybt.ssoier.cn:8088/problem_show.php?pid=2037
2038:【例5.5】最大数位置
http://ybt.ssoier.cn:8088/problem_show.php?pid=2038
2039:【例5.6】冒泡排序
http://ybt.ssoier.cn:8088/problem_show.php?pid=2039
*/
1026.练习2:翻转(课程ZA)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a[105][105];
cin>>n;
for(int i=1;i<=n;i++)
for(int j=1;j<=n;j++)
cin>>a[i][j];
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++)
cout<<a[j][i]<<" ";
cout<<endl;
}
return 0;
}
1027.例2:蛇形矩阵1(课程ZA)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++) {
if(i%2!=0)
for(int j=(i-1)*n+1;j<=i*n;j++)
cout<<j<<" ";
else
for(int j=i*n;j>=(i-1)*n+1;j--)
cout<<j<<" ";
cout<<endl;
}
return 0;
}
755.正多边形角度
756.显示图片
757.图片宽和高
宝宝的编程系列书籍
宝宝的数学书籍
宝宝的物理学系列
小学生讲C++(2023.12.03)
小学生C++学习,小学生讲C++
GO C编程 C++画图 学习资料大荟萃(2023.12.16)
C++入门书太多了,有的还配有视频
小学二三年级入门信奥赛,如何从Scratch进入C++的学习
宝宝的C++、小学生C++启蒙、小学生C++入门
Windows资源管理器的使用
Windows目录结构、移动、复制、搜索文件及文件夹等
信奥基本功:打字练习(盲打)
五笔 第一讲 指法
小学生C++编程启蒙
小学一二年级C++信奥学习规划(2024.01.11)
https://blog.csdn.net/dllglvzhenfeng/article/details/135526358
【信息学规划】一年级学图形化如何走向信奥
【信息学规划】北京二年级学生图形化过二级想往信奥靠拢如何准备
【信息学规划】北京二年级学生图形化过二级想往信奥靠拢如何准备_哔哩哔哩_bilibili