题解列表
阶乘数列(递归调用)
摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { double sum=0; for(int ……
while循环的理解
摘要:解题思路:注意事项:参考代码:#include"stdio.h"int pow(int n) { int sum = 1; int i = 0; while (i < 3) { sum *= n; ……
1743: 大整数排序
摘要:解题思路:把数当成字符串,用向量把他们装起来,长度长的一定比长度短的数大,长度一样就直接判断字符串谁大谁小注意事项:参考代码:#include<bits/stdc++.h>
using namesp……
注意要在平台的在线测试中运行
摘要:解题思路:暴力解决注意事项:边界的处理参考代码:#include<stdio.h>#include<stdlib.h>typedef struct node{ int data,n; ……
1009[编程入门]数字的处理与判断-不简洁但很明了(C语言)
摘要:解题思路:仅使用if-else判断选择的笨办法注意事项:参考代码:#include<stdio.h>int main(){ int a,b,d; int c1,c2,c3,c4,c5; ……
自定义函数之数字后移
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[1001]; int b[1001]; int i,n,m; scanf("%d",&n); fo……
非常普通的小白解法。。。
摘要:解题思路:注意事项:for循环内count[]内的值和i的起始值需要注意,数组从count[0]开始。所以代码内后两个for循环条件略有不同。参考代码:#include<stdio.h>int mai……
1039: [编程入门]宏定义之闰年判断
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||(y%400==0))?'L':&#……
(fly)1919: 蓝桥杯算法提高VIP-新建Microsoft Word文档(python)
摘要:解题思路:注意事项:参考代码:def ij(ls):
if ls==[]:
ls.append(1)
else:
for i in range(……