自定义函数之数字后移 摘要:解题思路:运用循环队列思想;空间换时间。注意事项:取余时公式参考代码:#include <stdio.h>#include <iostream>using namespace std;int main…… 题解列表 2023年03月11日 0 点赞 0 评论 271 浏览 评分:0.0
神奇的fans 利用集合来进行筛选 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): l=list(map(int,input().split())) s=set() l=…… 题解列表 2023年03月11日 0 点赞 0 评论 336 浏览 评分:0.0
成绩评定+switch语句 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int score; scanf("%d",&score); switch(score/10){ …… 题解列表 2023年03月11日 0 点赞 0 评论 295 浏览 评分:0.0
这个提示还不如不给. 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define No 0int main(){ int N,i1,i2; int a…… 题解列表 2023年03月11日 0 点赞 0 评论 330 浏览 评分:0.0
【刷题记录】1122-亲密数 摘要:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 3000 int main() { …… 题解列表 2023年03月11日 0 点赞 0 评论 243 浏览 评分:0.0
题目 1124: C语言训练-大、小写问题 摘要:参考代码:#include<stdio.h> #include<string.h> #include<ctype.h> void toLow(char *str){ for(int…… 题解列表 2023年03月12日 0 点赞 0 评论 248 浏览 评分:0.0
gpt 求解高精度乘法 摘要:### 算法思路 本题需要实现高精度乘法。高精度乘法和高精度加法很相似,都是将两个数的每一位相乘得到一个值,然后把这些值加到积中对应的位置上。具体流程如下: 定义数组 a 和 b 分别存储…… 题解列表 2023年03月12日 0 点赞 0 评论 670 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:#include<stdio.h> int main() { int a[9]; int i=0; int x; for(;i<=8;i++) {…… 题解列表 2023年03月12日 0 点赞 0 评论 234 浏览 评分:0.0
倍数问题(余数问题) 摘要:解题思路:(a+b+c)%k等价于(a%k+b%k+c%k)%k,之所以这样是因为直接暴力a,b,c范围太大超时,采用余数的方法可以减少时间复杂度,对于每个余数我们只用找到对应三个最大的数就够用了。注…… 题解列表 2023年03月12日 0 点赞 0 评论 388 浏览 评分:0.0
蓝桥杯--成绩分析 摘要:解题思路:最关键的地方就是--保留两位小数注意事项:保留两位小数的方式最简单的就是--printf("%.nlf",xx);---表示保留n位小数setprecision(n)+fixed的方式---…… 题解列表 2023年03月12日 0 点赞 0 评论 309 浏览 评分:0.0