自己瞎想的 摘要:#include<stdio.h>int main(){ int n,m,max,min; scanf("%d",&n); scanf("%d",&m); max=n>m?n:m; min=n<m?n…… 题解列表 2022年03月19日 0 点赞 0 评论 563 浏览 评分:0.0
摩西摩西!! 摘要:```cpp #include using namespace std; int main(){ double n; while(cin >> n){ …… 题解列表 2022年03月19日 0 点赞 0 评论 631 浏览 评分:0.0
c++理财计划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;class maney{public:int n;float k,p; };int …… 题解列表 2022年03月19日 0 点赞 0 评论 632 浏览 评分:0.0
c++ 常规解法 解题思路:因为是回文只用考虑年份即可且一年只有一个数先求出年份然后根据年份判断月份是否满足要求判断日期是否符合要求如果符合就是回文日期注意事项:求得是当前日期之后的,不用考虑前面的日期。注意20200121得到的解是20200202但是20200202得到的解是20212102参考代码:#includ 题解列表 2022年03月19日 0 点赞 0 评论 674 浏览 评分:0.0
蛇形矩阵的解题方法 摘要:解题思路:注意事项:参考代码:n = int(input()) # 一共 n 行x = 1 # 表示每一行的第一个数p = 2for i in range(1, n+1) : m = n …… 题解列表 2022年03月19日 0 点赞 0 评论 431 浏览 评分:0.0
C语言训练-自守数问题 摘要:注意用 long long int ,不如数字太大答案输出不全1、一开始的做法,从个位到十位到百位一位一位求出各个数,然后比较是否相等#include int main() { long lon…… 题解列表 2022年03月19日 0 点赞 0 评论 855 浏览 评分:9.9
虽然复杂一点点 但是也很好理解 解题思路:将输入换成列表由于题目中说明只有一个缺失一个重复那么只要列表中该数据的数量为2那就是重复的,再用for语句遍历关于缺失的应该注意用数列从最小的开始到最大的再令一个数从最小的开始如果哪个不相等就输出这个。注意事项:参考代码:N=eval(input())x=1c=[]whilex<=N:a=l 题解列表 2022年03月19日 0 点赞 0 评论 520 浏览 评分:0.0
编写题解 1119: C语言训练-"水仙花数"问题1 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int back(int a){ int b,c,d; b = a%10; …… 题解列表 2022年03月19日 0 点赞 0 评论 512 浏览 评分:0.0
编写题解 1092: A+B for Input-Output Practice 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; while(m--){…… 题解列表 2022年03月19日 0 点赞 0 评论 449 浏览 评分:0.0
蓝桥杯2019年第十届国赛真题-最长子序列-pyhon写法 S=input()T=input()i=0j=0ans=[]#用于存储子序列whilei 题解列表 2022年03月19日 0 点赞 0 评论 572 浏览 评分:0.0