用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 484 浏览 评分:9.9
数据结构-链表的基本操作 摘要:注意: 别用gets()来获取字符串,不然会跑不通 代码:按模块编写函数即可 #include #include #include int l…… 题解列表 2022年03月27日 0 点赞 0 评论 482 浏览 评分:0.0
新手易懂啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>int check(int x,…… 题解列表 2022年03月27日 0 点赞 0 评论 480 浏览 评分:9.9
for循环实现,12行代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; str…… 题解列表 2022年03月27日 0 点赞 0 评论 384 浏览 评分:9.9
蓝桥杯基础练习VIP-龟兔赛跑预测Python版 摘要:解题思路:注意事项:参考代码:#蓝桥杯基础练习VIP-龟兔赛跑预测Python版 v1,v2,t,s,l = map(int,input().strip().split()) x1,x2,time…… 题解列表 2022年03月27日 0 点赞 0 评论 625 浏览 评分:9.9
模拟过程,注意判断条件 摘要:解题思路:注意事项:参考代码:T = int(input()) for _ in range(T): n = int(input()) matrix = [list(inpu…… 题解列表 2022年03月27日 0 点赞 0 评论 241 浏览 评分:0.0
[编程入门]水仙花数判断 摘要:解题思路:将三位数每一位分离出来是重点注意事项:参考代码:for i in range(100,1000): a=i%10 b=(i%100)/10 c=i/100 if i=…… 题解列表 2022年03月27日 0 点赞 0 评论 303 浏览 评分:0.0
题解 1061: 二级C语言-计负均正(Python) 摘要:解题思路:注意事项:需要输入两行数字才能成功参考代码:x=input().split()y=input().split()m=[int(i) for i in x+y if int(i)<0]n=[i…… 题解列表 2022年03月27日 0 点赞 0 评论 362 浏览 评分:8.0
1000简单的a+b题解 摘要:解题思路:此题很简单,只需要将两个数相加即可。注意事项:并不是一组数据,而是多组,所以要用到while。重复输入输出就可以了。参考代码:#include<iostream>//所需头文件using n…… 题解列表 2022年03月27日 0 点赞 0 评论 380 浏览 评分:6.0
树状数组,python 摘要:解题思路:注意事项:参考代码:n=int(input())h=list(map(int,input().split()))maxh=max(h)cnt=[0]*(n)c=[0]*(maxh+2)#c[…… 题解列表 2022年03月27日 0 点赞 1 评论 604 浏览 评分:9.0