题解列表

筛选

2791: 计算邮资

摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc……

超级简略版

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a=15,b=25,h,y=150; float m; h=y*2/a; m=(a+b)*h/2.0……

很简单的题

摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int M[20]= {0,31,0,31,30,31,30,31,31,30,……

1480 模拟计算器 初学者一定能懂

摘要:解题思路:用强制转换把ch转换成int类型注意事项:需要理解强制转换的定义,括号里面的是需要转换到的数据类型。e.g       #include <stdio.h>      int main() ……

1796: 蛇形填数

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int n, a[150][150];void twins(i……

筛排处理,气死我了这题!!!

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义变量a和数组d,其中d的大小为1……