摘要:
易错点 变量名要看清楚 操作数组要谨慎 代码 #include <iostream> #include <cstdio> #include <string> #include <iomanip> using namespace std; int main(){ int n; string s; ci 阅读全文
posted @ 2022-07-10 18:18
qwasdasd
阅读(21)
评论(0)
推荐(0)
摘要:
注意点 c++里的百分号输出似乎只能*100后手动加% 代码 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; int main(){ int n; float e; int d; int k; 阅读全文
posted @ 2022-07-10 15:40
qwasdasd
阅读(19)
评论(0)
推荐(0)
摘要:
错误点 须考虑题干中提到“若用户选择的序号不存在”,可能会大于上限,也可能会小于等于0的情况 注意点 在一串字符中选取特定字符作为输入 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; st 阅读全文
posted @ 2022-07-10 14:49
qwasdasd
阅读(47)
评论(0)
推荐(0)
摘要:
错误点 (-0.005,0)上的数精确到小数点后两位时应是0而不是-0 注意点 cmath中的sin()和cos() 代码 #include <iostream> #include <cstdio> #include <cmath> #include <iomanip> using namespac 阅读全文
posted @ 2022-07-10 11:39
qwasdasd
阅读(36)
评论(0)
推荐(0)
摘要:
问题分解 数组倒序排列 指定正整数,求其两个最接近的因子m、n 顺时针螺旋矩阵打印 注意点 二维数组 代码 #include <iostream> #include <cstdio> #include <set> #include <vector> using namespace std; int 阅读全文
posted @ 2022-07-10 10:40
qwasdasd
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号