使用STL set容器进行解题 摘要:解题思路:先定义一个整型数组,从键盘赋值,然后再插入到set容器中,set 本身就可以达到去重,而且默认升序注意事项:参考代码: #include<iostream>#include<set>i…… 题解列表 2022年04月29日 0 点赞 0 评论 585 浏览 评分:9.9
c编程实现两个复数的运算 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef struc…… 题解列表 2022年04月29日 0 点赞 0 评论 581 浏览 评分:9.9
[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100; i<1000; i++){ a = i…… 题解列表 2022年04月29日 0 点赞 0 评论 437 浏览 评分:9.9
2672: 蓝桥杯2022年第十三届省赛真题-字符统计 摘要:import java.util.Scanner; import java.util.TreeMap; public class Mc { public static void ma…… 题解列表 2022年04月29日 0 点赞 0 评论 2374 浏览 评分:9.9
自定义函数之数字后移(懒人简单C++) 摘要:解题思路:根据题意输入,可以先输出后面需要输在开头的数,接着按原顺序输出剩下的数注意事项:for语句的应用参考代码:#include<iostream>#include<fstream>#includ…… 题解列表 2022年04月30日 0 点赞 0 评论 445 浏览 评分:9.9
C++利润计算(在if从句中写一行代码就运行一下,让计算机计算出上个区间的利润再加上) 摘要:解题思路:在if从句中写一行代码就运行一下,让计算机计算出上个区间的利润再加上,末尾的10000,17500等均是上一次输入100000,200000所得结果其他后缀的利润皆如此。注意事项:参考代码:…… 题解列表 2022年04月30日 0 点赞 2 评论 1136 浏览 评分:9.9
简单易懂,极简 摘要:解题思路:注意事项:参考代码:int main(){ int x = 0; int y = 0; while ((x = getchar()) != '\n') { if (x ==…… 题解列表 2022年04月30日 0 点赞 0 评论 427 浏览 评分:9.9
编写题解 1142: C语言训练-立方和不等式(python) 摘要:n = int(input()) s = t = 0 i = 1 while t <= n: t += pow(i, 3) s += 1 i += 1 prin 题解列表 2022年04月30日 0 点赞 0 评论 587 浏览 评分:9.9
编写题解 1261: 速算24点(python) 摘要:itertools是一个迭代器模块,具体功能详见 https://docs.python.org/3/library/itertools.html#参考代码:import itertools c…… 题解列表 2022年04月30日 0 点赞 0 评论 823 浏览 评分:9.9
[编程入门]利润计算题解 摘要:解题思路:这题就是纯属暴力判断。注意事项:数要算准!参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ sc…… 题解列表 2022年04月30日 0 点赞 1 评论 563 浏览 评分:9.9