输入输出练习之第二个数字 摘要:解题思路:对于已经知道要找第几个数,直接数组存取,很方便注意事项:参考代码:#include<stdio.h>int main(){ int a[4]; for(int i=0;i<4;i…… 题解列表 2022年06月30日 0 点赞 0 评论 430 浏览 评分:0.0
很简单的输入输出,按照格式来就可以了 摘要:解题思路:注意事项:有点不太明白这个问题的意义,可能是其他语言的练习题目吧我自己想太多了参考代码:def getreal(): nu=input() return nudef getstr…… 题解列表 2022年06月30日 0 点赞 0 评论 322 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:写一个函数,输入数组后,数组内元素循序逆转主函数输入数组-->经过函数转换-->主函数输出数组参考代码:#include<stdio.h> #include<string.h> void…… 题解列表 2022年06月30日 0 点赞 0 评论 292 浏览 评分:0.0
编写题解 1033: [编程入门]自定义函数之字符提取 摘要:解题思路:将字符串输入数组-->遍历数组-->找到是元音的字母,并赋值给新的数组-->输出新数组参考代码:#include<stdio.h> #include<string.h> int main…… 题解列表 2022年06月30日 0 点赞 0 评论 273 浏览 评分:0.0
二次方程求解 摘要:解题思路:注意事项:参考代码:import matha,b,c=map(eval,input().split())dt=b*b-4*a*cif dt>=0: x1=((-1)*b+math.sq…… 题解列表 2022年07月01日 0 点赞 0 评论 243 浏览 评分:0.0
二级C语言-计负均正 摘要:```python a = list(map(int,input().split())) while len(a)0): sum +=int(a[i]) j+=…… 题解列表 2022年07月01日 0 点赞 0 评论 349 浏览 评分:0.0
信息学奥赛一本通T1479-Keywords Search-题解(各语言代码) 摘要:**python** ```python for _ in range(int(input())): l=[input() for _ in range(int(input()))] s=…… 题解列表 2022年07月01日 0 点赞 0 评论 366 浏览 评分:0.0
叙利亚战损版,凑合着看吧 C语言详解 摘要:解题思路:利用多重三目运算符求最大值注意事项:先用函数输出再用宏定义表达式,输出时可以不设为浮点数,%d.000\n%d.000会比较方便且行得通参考代码:%d.000\n%d.000#include…… 题解列表 2022年07月01日 0 点赞 0 评论 373 浏览 评分:0.0
最小公倍数求解(C语言) 摘要:解题思路:i/40要想成为最简真分数,满足分子分母的最小公倍数等于分子分母乘积即可。注意事项:编写函数来求解最小公倍数参考代码:#includeint gcd(int a,int b){ if(b==…… 题解列表 2022年07月01日 0 点赞 0 评论 305 浏览 评分:0.0
题解 1549: 蓝桥杯算法提高VIP-盾神与积木游戏 类似银行家算法 摘要:#include<iostream> #include<algorithm> #include<string> using namespace std; int m,n; struct st…… 题解列表 2022年07月02日 0 点赞 0 评论 291 浏览 评分:0.0