枚举法,简单暴力好理解(小白题解) 摘要:解题思路:枚举每一天判断这一天是否符合要求注意事项:10000101 ≤ N ≤ 89991231我们的判断就得是八位数的最大 年份最大为9999参考代码:#include<bits/stdc++.h…… 题解列表 2023年04月05日 0 点赞 0 评论 485 浏览 评分:9.0
蓝桥杯2015年第六届真题-饮料换购 摘要:解题思路:注意事项:参考代码:n = int(input())s = nwhile n>=3: a = n//3 s+=a n = a+n-3*aprint(s)…… 题解列表 2023年04月05日 0 点赞 0 评论 192 浏览 评分:0.0
(带解析)[编程入门]宏定义之闰年判断 摘要:此题目的带参宏定义基本格式: define leap_year(y) (条件)?(符合条件输出):(不满足条件输出) ```c #include #define leap_year(y) …… 题解列表 2023年04月05日 0 点赞 0 评论 279 浏览 评分:9.0
一眼顶真,纯纯的nt题,注意加空行就行了 摘要:解题思路:纯纯的nt题,注意加空行就行了注意事项:参考代码:#include<iostream> using namespace std; int main(){ int a,n; c…… 题解列表 2023年04月05日 0 点赞 0 评论 216 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积_C++超简单版!!! 摘要:C++输出三位有效数字需要```cpp #include ```头文件 //其基本格式为 cout b >> c; cout …… 题解列表 2023年04月05日 0 点赞 0 评论 258 浏览 评分:8.0
程序员爬楼梯——递归 摘要:解题思路:注意事项:参考代码:def pa(n): if n == 1 or n == 2: return 1 elif n == 3: return 2 …… 题解列表 2023年04月05日 0 点赞 0 评论 320 浏览 评分:9.9
区间中最大的数 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))m = int(input())for i in range(m): …… 题解列表 2023年04月05日 0 点赞 0 评论 301 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-重复的数 摘要:解题思路:离线处理(若一边读一边实时处理则为在线处理),分块思想。注意事项:不要超时参考代码:#include <iostream> #include <vector> #include <set…… 题解列表 2023年04月05日 2 点赞 0 评论 642 浏览 评分:9.9
与2无关的数——python 摘要:解题思路:注意事项:参考代码:def bxg(n): if '2' in str(n) or n%2 == 0: return 0 else: …… 题解列表 2023年04月05日 0 点赞 0 评论 209 浏览 评分:0.0
谁是你的潜在朋友 摘要:解题思路:注意事项:参考代码:while True: try: n,m = map(int,input().split()) L = [int(input()) fo…… 题解列表 2023年04月05日 0 点赞 0 评论 176 浏览 评分:0.0