题解列表

筛选

使用string实现数字分离

摘要:解题思路:使用string拿到用户输入的字符串利用size函数求出字符串大小利用for循环逐个输出用户的字符注意事项:输出每个字符后需要加上空格参考代码:#include<iostream>using……

短信计费C++语言

摘要:## 短信计费我的方法是字数/70获得计费次数,然后浮点数向上取整 ```cpp #include #include using namespace std; int main() ……

2813: 药房管理

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

题解 2830: 数字统计 标题

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

C++输出所有水仙花数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){   int i,j;   int a,b,c;      for(i……

1234: 检查一个数是否为质数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n;    cin>>n;   ……