题解列表

筛选

弟弟的作业

摘要:解题思路:使用cin逐个拿到用户输入的数据再进行计算即可注意事项:需要掌握string与int互相转换的方法string->int:1、通过 istringstream 转换#include <ios……

c++辗转相除法

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int zhx(int a, int b) { return (a % b == 0……

2814: 正常血压

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n,a,b,sum=0,maxx=0;//定……

用字符串简单解决

摘要:解题思路:注意事项:注意计算时要把字符串转换为整型才可以计算!参考代码:#include <iostream>using namespace std;int main(){   string m;  ……