[编程入门]三个数最大值(c++代码) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>max) max=a;…… 题解列表 2022年08月12日 0 点赞 0 评论 1079 浏览 评分:0.0
c/c++方法 初学者思维 摘要:解题思路:注意事项:参考代码:void input() { char c; int letter = 0, space = 0, digit = 0, other = 0; while …… 题解列表 2022年08月12日 0 点赞 0 评论 511 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目(C++) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { int m, n, i, cnt = 0; …… 题解列表 2022年08月12日 0 点赞 0 评论 393 浏览 评分:0.0
明明的随机数C++(随便写着玩,欢迎各大神指出错误,以便我日后改进) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int tong[100]={},n; …… 题解列表 2022年08月13日 0 点赞 0 评论 194 浏览 评分:0.0
十->二进制转换常规算法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int pa;while(cin>>pa){ //如何判断输…… 题解列表 2022年08月14日 0 点赞 0 评论 292 浏览 评分:0.0
[编程入门]猴子吃桃的问题 摘要:解题思路:逆向看问题。注意事项:今天算是第一天(如果到第十天要进行九次运算)参考代码:#include<stdio.h>int main(){ int n,i,g=1; scanf("%d…… 题解列表 2022年08月14日 0 点赞 0 评论 561 浏览 评分:0.0
C\C++就是求第二最大和的问题 耗时1 摘要:解题思路:是自己挑一部分数字求第二最大。所以如果全是负数那么最大就是什么都不挑。第二大就是0+最大的负数注意事项:没什么特别需要注意的想用c提交就把 &和const去掉参考代码:#include<st…… 题解列表 2022年08月14日 0 点赞 0 评论 369 浏览 评分:0.0
c语言汽水瓶(高端的题目,往往只需要朴素简易的解答) 摘要:解题思路:三瓶空气水瓶可以换一个汽水,也就是得到了一个新的空汽水瓶,同时喝汽水的次数+1,又由于只剩下2个空瓶的时候还可以再喝一瓶,所以我们可以简化为喝汽水次数=空瓶数量/2,小数点直接扔掉,想通了就…… 题解列表 2022年08月14日 0 点赞 0 评论 527 浏览 评分:0.0
题解 1033: [编程入门]自定义函数之字符提取(C) 摘要:解题思路:咱就是说gets和strlen函数不要太好用~,兄弟们用起来~参考代码:#include<stdio.h> #include<string.h> int Vowel(char a[]…… 题解列表 2022年08月15日 0 点赞 0 评论 318 浏览 评分:0.0
简洁for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,max; scanf("%d",&a); max=a; for(int i=…… 题解列表 2022年08月15日 0 点赞 0 评论 348 浏览 评分:0.0