题解列表
2770: 计算浮点数相除的余数
摘要:```cpp
#include
#include
using namespace std;
int main()
{
double a, b;
cin >> a >>……
2772: 苹果和虫子
摘要:```cpp
#include
#include
using namespace std;
int main()
{
int n;
double x, y;
……
初学者用if暴力解法
摘要:解题思路:定义一个变量a,其中:if条件a/10000!=0表示a为一个五位数,以此类推注意事项:注意else if 的用法,不要丢了else 第二个问题不要用else参考代码:#include <s……
1669: 求圆的面积
摘要:解题思路:无注意事项:要用到3个“工具”。。。参考代码:#include<iostream>#include<iomanip>#define Pi 3.1615926usins namespace s……
这个只学到循环就够用,我觉得这个是最适合初学者的方法,无需用数组去存放。
摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#pragma warning(disable:6031)//前两行是我编译器的问题,这个有没有都OK的#i……
题解 2831: 画矩形
摘要: #include
using namespace std;
int main(){
int a,b,d;
char c;
cin>>a>……
题解 1234: 检查一个数是否为质数
摘要: #include
using namespace std;
int main(){
int a,b,d;
while(cin>>a){
……
2834: 与指定数字相同的数的个数
摘要:```
#include
using namespace std;
int a[100000],n,num,ans;
int main(){
cin>>n;
for( int i=1;……