艰难的艰难 摘要:解题思路:注意事项:m*n的积等于最大公约数和最小公倍数的积参考代码:int jn=0,m,n,bug; scanf("%d%d",&m,&n); bug=m*n; while(n>0) { …… 题解列表 2022年05月01日 0 点赞 0 评论 582 浏览 评分:0.0
通过for循环来求解 解题思路:注意事项:参考代码:list1=list(map(int,input().split()))list2=list(map(int,input().split()))list3=[]foriinlist1:list2.append(i)forvinlist2:ifv>=0:list3.appe 题解列表 2022年05月01日 0 点赞 0 评论 781 浏览 评分:0.0
c语言实数的打印,可变行数 摘要:#include <stdio.h> #define h 3 int main() {float a ; scanf ("%f",&a); int cnt = 1; for (int i …… 题解列表 2022年05月01日 0 点赞 0 评论 581 浏览 评分:0.0
[编程入门]带参数宏定义练习-题解(C语言代码) 摘要:解题思路:利用按位异或来算,不会出现溢出的问题,不管多大的数都不会溢出。按位异或是把数转换成二进制相比,位数的值相等为0,否则为1.例如:0011^0101为0110a=a^b; 此时a为一个新数b…… 题解列表 2022年05月01日 0 点赞 0 评论 792 浏览 评分:0.0
C++模拟短除做的 摘要:解题思路:可以在纸上先用短除做一遍,会发现找到的最大公约数就是短除号前的那些数相乘,而最小公倍数又=m*n/最大公约数注意事项:参考代码:#include<iostream>//我是模拟短除做的usi…… 题解列表 2022年05月01日 0 点赞 0 评论 579 浏览 评分:0.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:f=eval(input()) c=5*(f-32)/9 print('c=%.2f'%c)…… 题解列表 2022年05月02日 0 点赞 0 评论 929 浏览 评分:0.0
编写题解 1007: [编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:x=eval(input()) if x <1: print(x) elif x>=1 and x<10: print(2*x-1) elif …… 题解列表 2022年05月02日 0 点赞 0 评论 774 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计 解题思路:首先题目中给出了工作日和双休日写的数目,以及总共的题量,由于最大限制已经到达10的18次方,所以需要用longlongint类型,同时由于数很大,很容易造成超限,所以不能从第一天开始,一天一天的循环,要先计算有多少个整周,对整周处理完之后, 题解列表 2022年05月02日 0 点赞 0 评论 1011 浏览 评分:0.0
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 解题思路:注意事项:本地可以通过编程,但是在这里提交后有17%的错误,我也不知道问题出在哪里.......参考代码:N=eval(input())ls=[input().split()]whilelen(ls) 题解列表 2022年05月02日 0 点赞 0 评论 633 浏览 评分:0.0 1072: 汽水瓶 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tt(int w){ int m,n,x,y,sum=0; m…… 题解列表 2022年05月02日 0 点赞 0 评论 592 浏览 评分:0.0 « 12...2068206920702071207220732074...59235924 »
1072: 汽水瓶 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tt(int w){ int m,n,x,y,sum=0; m…… 题解列表 2022年05月02日 0 点赞 0 评论 592 浏览 评分:0.0