题解列表

筛选

1120: C语言训练-"水仙花数"问题2

摘要:解题思路:  就是一个一个用for循环试。。。注意事项: 这样的数有4个!4个!4个!重要的事情说三遍!!!参考代码:方法一:#include<bits/stdc++.h>using namespac……

C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int main(){    int N;    cin >> N;     while ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int m, n,i;    while (scanf("%d %d", &n, &m) == 2 && ……

简单又实用

摘要:```cpp #include #include // 包含cmath头文件来使用pow函数 using namespace std; int main() { int R, ……

简单又实用

摘要:参考代码:#include <iostream>using namespace std;int main() {    int n;    cin >> n;    int known_sum = 0……

简单又实用

摘要:参考代码:#include <iostream>#include <cmath>  // 包含cmath头文件来使用M_PI常量using namespace std;int main() {    ……