摘要: ⭐ 接龙数列 输入样例 5 11 121 22 12 2023 输出样例 1 ⭐ 动态规划(过50%) import java.io.*; public class Main { static int N = 100010; static int[] l = new int[N]; static i 阅读全文
posted @ 2023-04-14 15:26 兑生 阅读(54) 评论(0) 推荐(0)
摘要: 🍑 C语言实验专栏 1. 求序列和 ⭐ 输出没有小数的浮点数 #include <stdio.h> double fun(int a, int n) { double res = 0; int aa = a,i;//aa 记录每一项 for(i = 1; i <= n; i++){ res += 阅读全文
posted @ 2023-04-14 11:47 兑生 阅读(160) 评论(0) 推荐(0)
摘要: 🍑 C语言实验专栏 1. 数组最大值交换 ⭐ 1e9:10的9次方 #include<stdio.h> int main() { int n, i,idx = 0;//idx 记录第一个出现的最大值下标 scanf("%d", &n); double a[30]; double max = -1e 阅读全文
posted @ 2023-04-14 00:10 兑生 阅读(98) 评论(0) 推荐(0)
Live2D