题解列表

筛选

程序员的表白

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

1054: 二级C语言-计算素数和,通俗易懂

写题思路:本体难度不高,也没啥思路,按部就班就行具体标志也写在下方代码中。#includeintmain(){intm,n,x;//这里默认m小于n,省点步骤(其实是我写完看别人才发现m,n大小问题)scanf("%d%d",&m,&n);intsum=0;//sum用于计算m,

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

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

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

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

1015-求和训练

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