杨辉三角 (Java代码) 摘要:解题思路: 使用二维数组保存数据注意事项: 生成数据可以直接输出,提高效率,不用二次遍历参考代码:import java.util.Scanner; public class Yan…… 题解列表 2019年01月04日 2 点赞 0 评论 1192 浏览 评分:0.0
邮局选址问题 (C++代码) 贪心 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a[10000],b[10000…… 题解列表 2019年01月04日 1 点赞 0 评论 2587 浏览 评分:9.9
幸运数 (C语言代码)|•ω•`)|•ω•`)|•ω•`) 摘要:#include<stdio.h>#define MAX 10000int lucknum(int *luck)//产生幸运数{ int i,j,p1=1,p2=MAX;//p1用来标记被除数数组下标…… 题解列表 2019年01月04日 5 点赞 2 评论 1183 浏览 评分:9.4
【出圈】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ int n,m,i,curans,j; while(scan…… 题解列表 2019年01月04日 0 点赞 0 评论 886 浏览 评分:0.0
优质题解 C/C++数学思维推导求解汽水瓶 (C/C++语言代码) 摘要:编译测试:Linux Debain Ubuntu/Kali g++Windows Visual Studio/华为Source Insight 4.0解题思路:本题我的方法是进行数学推导! 毕竟像这…… 题解列表 2019年01月03日 3 点赞 0 评论 2576 浏览 评分:9.9
计算输入数据的和与乘积 (C++代码) 摘要:解题思路:把数字作为char数组读入,处理起来会更方便一些。参考代码:#include <iostream> #include <cstring> using namespace std; …… 题解列表 2019年01月03日 0 点赞 0 评论 1461 浏览 评分:7.3
寻找奇整数 (C++代码) 摘要:解题思路:把原题中偶数都改成“-1”,然后直接查询给出的数字在列表中的位置参考代码:#include <iostream> using namespace std; int main() …… 题解列表 2019年01月03日 1 点赞 0 评论 1136 浏览 评分:0.0
去除空格 (C++代码)此处可以骚操作一波 摘要:解题思路:读入,然后,输出,循环...注意事项:这里,scanf读入字符串时会自动识别空格,并结束一次输入,循环读入即实现题目要求。参考代码:#include <stdio.h> int main(…… 题解列表 2019年01月03日 4 点赞 1 评论 1258 浏览 评分:9.6
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路: 注意事项: 参考代码: #include struct day { int year; int month; int day…… 题解列表 2019年01月03日 4 点赞 3 评论 889 浏览 评分:9.0
C/C++ Vector动态数组 荣耀 (C/C++代码) 摘要:解题思路:定义一个vector向量容器来存储数据,相当于C语言中的动态数组。vector<int> vec;然后把数据存入vec容器中vec.push_back(data);然后复用switch开关语…… 题解列表 2019年01月03日 4 点赞 0 评论 922 浏览 评分:0.0