题解列表
1169基础解法(Python)
摘要:注意事项:因为sys.stdin直接读取输入流,则第一项是什么对我们而言不太重要,只需要判断这个列表是否为空即可因为是绝对值的大小排序,选用sorted()函数中的key参数设定排序的指标为abs()……
记录自己答案:1025
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[9],b[10],n,i; for(i=0;i<9;i++) { s……
1098: 陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n = 0, a[10] = {0}, ans = 0; for (int i = 0; ……
2800: 多边形内角和
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int n = 0, ans = 0;
scanf("%d", &n);
……
2886: 图像旋转
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int m = 0, n = 0, a[105][105] = {0}, b[105][10……
2903: 不高兴的津津
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int a[8] = {0}, n = 0, max = 0, ans = 0;
……
2917: 奇数单增序列
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int n = 0, a[505] = {0}, q = 0;
scanf("%d……
回文判断(字符串比较)+ 踩坑经过
摘要:解题思路: 回文数:是从左到右读和从右到左读都一样的数字。 思路:既然题目要求使用字符串来解决,无非就是字符串的比较问题。先使用一个for循……
c语言蓝桥杯1446题解
摘要:解题思路:由题意能看出是求三个数的最小公倍数.关键就是把三给数的最小公倍数代码写出就可以解了.注意事项:可以先把最大公约数求出,再把算出最小公倍数,最后调用函数.参考代码:#include<stdio……