题解列表

筛选

实数的打印(java暴力)

摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class Main{ public static void main(Strin……

1015-求和训练

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef long long LL;LL sum(int a){ LL res=0; f……

1016-水仙花数判断 语言:C++

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

1017-完数的判断 语言:C++

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

报数问题的C++解法--暴力

摘要:解题思路:首先,输入该循环链表,在头结点指向为空时,即链表为空时,新增节点的指向就是其本身。以后新增节点以后,指针域保存的是第一个结点的地址。其次,进行排除。设置两个指针,分别为prev和p。p是pr……