首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
cczz
加油
关注
发消息
文章
0
题解
35
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
6
阅读数
1372
日期类 题解:
#include<bits/stdc++.h> using namespace std; int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; bool isLeapYear(int y){ retu...
P1437
2025年8月5日 17:51
回复 0
|
赞 0
|
浏览 40
打印日期 题解:
#include<bits/stdc++.h> using namespace std; int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; bool isLeapYear(int y){ retu...
P1410
2025年8月5日 17:42
回复 0
|
赞 0
|
浏览 38
日期差值 题解:
#include<bits/stdc++.h> using namespace std; int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; bool isLeapYear(int y){ retu...
P1290
2025年8月5日 17:32
回复 0
|
赞 1
|
浏览 51
日期 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int m,d; cin >> m >> d; int a[13] = {0, 31, 28, 31, 30, ...
P1011
2025年8月5日 17:00
回复 0
|
赞 2
|
浏览 65
2048游戏 题解:
#include<bits/stdc++.h> using namespace std; void merge(int *b){ int front = b[0]; int flag = 0; // front是否为合并后的结果 for(int i = 1;...
P1472
2025年8月4日 22:05
回复 0
|
赞 1
|
浏览 58
旋转矩阵 题解:
矩阵旋转题目,把握好顺时针旋转90度的逻辑、和纵向对折交换即可 tip:建议采用vector容器,便于数组处理 #include<bits/stdc++.h> using namespace std; // 矩阵顺时针旋转90度 vector<vec...
P1221
2025年8月4日 20:11
回复 0
|
赞 0
|
浏览 51
旋转方阵 题解:
关键: 1.根据题目要求进行模拟,d用于控制填充方向 2.注意输出格式 #include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; ...
P1216
2025年8月4日 19:22
回复 0
|
赞 0
|
浏览 42
旋转矩阵 - 北航 题解:
关键点: 1.找到旋转90度的规律 2.如何比较数组相等 tip:采用vector容器代替数组 #include<bits/stdc++.h> using namespace std; // 顺时针旋转90度 vector<v...
P1377
2025年8月4日 17:53
回复 0
|
赞 1
|
浏览 25
旋转矩阵 - 北航 题解(找规律暴力求解):
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin >> n){ int a[10][10]; int b[10][10]; ...
P1377
2025年8月4日 17:39
回复 0
|
赞 0
|
浏览 46
杨辉三角形(不输出第一行) - 西北工业大学 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int a[105][105] = {0}; a[1][1] = 1; a[2][1] ...
P1392
2025年8月4日 17:07
回复 0
|
赞 0
|
浏览 53
八进制 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int num; while(scanf("%d", &num) != EOF){ char out[105]; int ...
P1417
2025年8月3日 18:14
回复 0
|
赞 0
|
浏览 48
十进制转二进制 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int num; while(scanf("%d", &num) != EOF){ char out[105]; int ...
P1715
2025年8月3日 17:59
回复 0
|
赞 0
|
浏览 39
进制转换2 题解:
#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; while(scanf("%s",s) != EOF){ int res = 0; int len = ...
P1259
2025年8月3日 17:04
回复 0
|
赞 0
|
浏览 34
反序数 题解:
#include<bits/stdc++.h> using namespace std; int main(){ for(int i = 1000; i <= (9999/9); i++) { int res = i*9; ...
P1454
2025年8月3日 16:46
回复 0
|
赞 0
|
浏览 43
身份证校验 题解:
#include<bits/stdc++.h> using namespace std; int w[] = {7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2}; int trans[] = {1,0,'X'-'0',9,8,7,6,5,4,3...
P1722
2025年8月3日 16:09
回复 0
|
赞 0
|
浏览 31
1
2
本科学校:bilibili大学
目标学校:无
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!