题解列表

筛选

使用STL set容器进行解题

摘要:解题思路:先定义一个整型数组,从键盘赋值,然后再插入到set容器中,set 本身就可以达到去重,而且默认升序注意事项:参考代码:    #include<iostream>#include<set>i……

c编程实现两个复数的运算

摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef struc……

[编程入门]水仙花数判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c,i;    for(i=100; i<1000; i++){        a = i……

自定义函数之数字后移(懒人简单C++)

摘要:解题思路:根据题意输入,可以先输出后面需要输在开头的数,接着按原顺序输出剩下的数注意事项:for语句的应用参考代码:#include<iostream>#include<fstream>#includ……

简单易懂,极简

摘要:解题思路:注意事项:参考代码:int main(){ int x = 0; int y = 0; while ((x = getchar()) != &#39;\n&#39;) { if (x ==……

编写题解 1261: 速算24点(python)

摘要:itertools是一个迭代器模块,具体功能详见 https://docs.python.org/3/library/itertools.html#参考代码:import itertools c……

[编程入门]利润计算题解

摘要:解题思路:这题就是纯属暴力判断。注意事项:数要算准!参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ sc……