C语言训练-8除不尽的数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"1993"; return 0;}…… 题解列表 2024年02月16日 0 点赞 0 评论 262 浏览 评分:6.0
替天帝发题解的打工人 摘要:```Python import sys k = eval(input()) s = input() cnt = 1 for i in range(len(s)-1): if s[i…… 题解列表 2024年02月16日 0 点赞 0 评论 315 浏览 评分:6.0
找规律即可,C++解法,用循环,非循环法可以看看别的大佬 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int m = 0;int main(){ int x, y; cin >> x…… 题解列表 2024年02月18日 0 点赞 0 评论 394 浏览 评分:6.0
编写题解 2764: 带余除法 摘要:解题思路:注意事项:除数不能为0'//'为取整除,得到商的整数部分(向下取整)参考代码:a,b=map(int,input().split())while b!=0: print…… 题解列表 2024年02月23日 0 点赞 0 评论 707 浏览 评分:6.0
题解 2794: 求平均年龄 摘要:解题思路:套个循环……注意事项:别抄我的,抄我的人我诅咒他电脑立刻关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace st…… 题解列表 2024年02月23日 0 点赞 0 评论 592 浏览 评分:6.0
题解 2829: 数1的个数 摘要:解题思路:额……自己理解,学了循环的应该都会吧,我不解释了\^w^/。注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<win…… 题解列表 2024年02月24日 0 点赞 0 评论 406 浏览 评分:6.0
蓝桥杯2022年第十三届决赛真题-卡牌-两种思路(二分+暴力枚举) 摘要:解题思路:思路1:暴力枚举先把数组从小到大排序,然后先从小的开始凑套。思路2:二分枚举二分枚举可以凑成mid套注意事项:需要开longlong参考代码:暴力枚举:#include <bits/stdc…… 题解列表 2024年02月26日 0 点赞 0 评论 726 浏览 评分:6.0
短信计费C小白解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double sum=0; int n,i; scanf("%d",&n); int a…… 题解列表 2024年02月27日 1 点赞 0 评论 552 浏览 评分:6.0
已知三点求面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%…… 题解列表 2024年02月28日 0 点赞 0 评论 635 浏览 评分:6.0
题解 1481剪刀石头布 摘要:解题思路:看到这个题目已知0代表石头,1代表布,2代表剪刀本题有三种结局1.甲胜乙负2.甲负乙胜3.平局第一种情况 甲出石头乙出剪刀甲出剪刀乙出布甲出布乙出石头第二种情况反之第三种情况 平局甲出石头乙…… 题解列表 2024年03月01日 0 点赞 1 评论 478 浏览 评分:6.0