[编程入门]水仙花数判断 最基础解法 摘要:解题思路:bw=i//100 sw=(i-bw*100)//10 gw=i-bw*100-sw*10注意事项:参考代码: for i in range(100,1000): bw=i…… 题解列表 2022年10月18日 0 点赞 0 评论 492 浏览 评分:7.0
1151: C语言训练-计算一个整数N的阶乘 摘要:```cpp #include using namespace std; int main() { int n,s=1; cin>>n; for(int i=1;…… 题解列表 2022年10月23日 0 点赞 0 评论 435 浏览 评分:7.0
1155: C语言训练-阶乘和数* 摘要:方法一: ```cpp #include #include using namespace std; int Jcheng(int n); int main() { char …… 题解列表 2022年10月23日 0 点赞 0 评论 526 浏览 评分:7.0
求绝对值的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float a; scanf("%f",&a); if(a>=0){ printf("%.2f",a); }…… 题解列表 2022年10月25日 0 点赞 0 评论 669 浏览 评分:7.0
找第一个只出现一次的字符 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[100011]; typedef int Arr[100011]; …… 题解列表 2022年10月27日 0 点赞 4 评论 453 浏览 评分:7.0
兰顿蚂蚁python代码,正确,小白水平可读懂 摘要:解题思路:注意事项:参考代码:#兰顿蚂蚁#输入m,n=map(int,input().split())l1=[]for i in range(m):#输入矩阵 l1.append(list(ma…… 题解列表 2022年10月29日 0 点赞 0 评论 342 浏览 评分:7.0
(结构体类型)病人排队 摘要:解题思路:排序就是简单的冒泡排序,重点核心内容是要学会使用结构体类型,这样以后写题就会变的方便注意事项:这里注意的是这个ID号是字符类型,因为可能包含字母,所以要声明char类型,参考代码:#incl…… 题解列表 2022年11月09日 0 点赞 0 评论 463 浏览 评分:7.0
C++STL之Priority_queue(优先队列) 摘要:解题思路:C++STL之Priority_queue(优先队列)注意事项:参考代码:#include<iostream>#include<queue>#include<vector>#include<…… 题解列表 2022年11月10日 0 点赞 0 评论 402 浏览 评分:7.0
最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int max,min,i,M,a[10000]; scanf("%d",&M); for(i=0;i<M;i+…… 题解列表 2022年11月22日 0 点赞 0 评论 556 浏览 评分:7.0
1039: [编程入门]宏定义之闰年判断 摘要:```cpp #include #define LEAP_YEAR(y) (y%100!=0&&y%4==0||y%400==0)?'L':'N' int main() { int y;…… 题解列表 2022年12月06日 0 点赞 0 评论 1002 浏览 评分:7.0