二级C语言-成绩归类——关于只有50%对是怎么回事 摘要:解题思路:注意事项:要是一行输不完,要用extend接着参考代码:L = list(map(int,input().split()))while min(L)>0:#很关键的一步,要是一行输不完可继续…… 题解列表 2023年03月15日 0 点赞 0 评论 208 浏览 评分:0.0
汽水瓶——三个空瓶换一瓶汽水 摘要:解题思路:稍微列一下,就很容易发现空瓶数与汽水数之间的关系注意事项:参考代码:for i in range(10): a = int(input()) if a == 0: …… 题解列表 2023年03月15日 0 点赞 0 评论 173 浏览 评分:0.0
dp思想 三个点分类讨论 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]dp=[[0 for _ in range(100)] for _ in range(100)]for i in range(n): …… 题解列表 2023年03月15日 0 点赞 0 评论 182 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要: #include #include #include #include #include #include #include …… 题解列表 2023年03月15日 0 点赞 0 评论 259 浏览 评分:0.0
c++题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int …… 题解列表 2023年03月15日 0 点赞 0 评论 175 浏览 评分:0.0
自由下落的距离计算, 摘要:解题思路:我们把每次弹起来看做一次终点,每段即为M+M/2注意事项:注意最后一次并没有弹起来所以需要减去一个M;参考代码:自由下落的距离计算#include<bits/stdc++.h>using n…… 题解列表 2023年03月15日 0 点赞 0 评论 139 浏览 评分:0.0
模拟(不涉及任何算法!) 摘要:解题思路:这题20分白给啊!我前面一题就5分呜呜呜!!!注意事项:参考代码:n=eval(input())s=input()temp=list(["0"]*201 for i in range(201…… 题解列表 2023年03月15日 0 点赞 0 评论 332 浏览 评分:0.0
超级简单的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0}; gets(…… 题解列表 2023年03月15日 0 点赞 0 评论 154 浏览 评分:0.0
编写题解 1039: 宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=…… 题解列表 2023年03月16日 0 点赞 0 评论 172 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录 摘要: 注意结构体+函数的调用形式!!! ```c #include #include struct stu { char num[10]; char name[20]; i…… 题解列表 2023年03月16日 0 点赞 0 评论 180 浏览 评分:0.0