不学习就会变废物
不学习就会变废物
全部文章
分类
归档
标签
去牛客网
登录
/
注册
不学习就会变废物的博客
TA的专栏
35篇文章
0人订阅
2025考研复试
35篇文章
45人学习
全部文章
(共34篇)
题解 | 打印日期 关键闰年,找下一天 和打印格式
来自专栏
#include <iostream> using namespace std; void nextDay(int &year,int & startMonth,int & startDay) { // 每个月份的天数数组 int dayOfMonth[] ...
2025-03-11
0
21
题解 | 今年的第几天?关键闰年的判断
来自专栏
#include <iostream> using namespace std; // 引用传递,改变值 void nextDay(int& year, int& month, int& day) { // 不定长度数组,需要初始化 存储天数与月份的关...
2025-03-11
0
21
题解 | xxx定律
来自专栏
#include <iostream> using namespace std; int xxxlaw(int n) { int count = 0; while (1 != n) { if (0 == n % 2) { n = ...
2025-03-10
0
18
题解 | 反序数
来自专栏
#include <iostream> #include <math.h> using namespace std; int main() { int temp = 0, k = 0, weigh = 0; for (int i = 1000; i <= 9999...
2025-03-09
0
21
题解 | abc
来自专栏
#include <iostream> using namespace std; int main() { int a,b,c,d,e; for(a=0;a<=9;a++){ for(b=0;b<=9;b++){ fo...
2025-03-09
0
22
题解 | 求最大值
来自专栏
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int max = INT_MIN, n, temp; while (cin) { ...
2025-03-09
0
20
题解 | 求最大最小数 分治法
来自专栏
// 方法二:递归,分治法,二分法 #include <iostream> using namespace std; // 引用改变原值 void maxmin(int i, int j, int& fmax, int& fmin, int data[]) { ...
2025-03-09
0
24
题解 | 百鸡问题
来自专栏
#include <iostream> #include <cmath> using namespace std; int main() { int i, j, k, sum, n1, n2; while (cin >> sum) { ...
2025-03-08
0
26
题解 | 三角形的边
来自专栏
#include <iostream> using namespace std; int max(int a,int b,int c){ return (c>=b&&c>=a)?c:max(c,a,b); // 递归没问题,一个返回,相当于直接返...
2025-03-08
0
17
题解 | 判断三角形类型
来自专栏
#include <iostream> using namespace std; int main() { int a, b, c; int aa,bb,cc; int cosA,cosB,cosC; cin>>a>>b>&...
2025-03-07
0
20
首页
上一页
1
2
3
4
下一页
末页