复旦周杰伦
复旦周杰伦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
复旦周杰伦的博客
全部文章
(共30篇)
题解 | #找最小数#
#include <cstdio> int main() { int n; scanf("%d\n",&n); int arr[n][2]; for(int i=0;i<n;i++){ scanf("%d%d",&arr[i][0]...
2023-02-28
1
369
题解 | #小白鼠排队#
#include <iostream> #include "algorithm" #include "cstdio" #include "string" using namespace std; typedef struct mouse { int weight; c...
2023-02-28
0
243
题解 | #特殊排序#
#include <iostream> #include <cstdio> #include "vector" #include "algorithm" using namespace std; int main() { int N; scanf("%d", ...
2023-02-28
2
347
题解 | #Old Bill#
#include <stdio.h> int main() { int N, X, Y, Z; while (scanf("%d\n%d%d%d", &N, &X, &Y, &Z) != EOF) { int $_XYZ_ = 0; int...
2023-02-28
1
308
题解 | #二叉树# 用递归加分治解决,左子树加右子树
#include <iostream> #include "cstdio" int pointNum(int m, int n) { if (2 * m + 1 <= n) return pointNum(2 * m, n) + pointNum(2 *...
2023-02-28
1
263
题解 | #查找#
#include <iostream> #include "cstdio" #include "algorithm" #include "map" using namespace std; //bool BinarySort(int arr[],int left,int right,in...
2023-02-25
0
250
题解 | #查找#
#include <iostream> #include "cstdio" #include "algorithm" using namespace std; bool BinarySearch(int arr[], int left, int right, int x) { i...
2023-02-25
0
295
题解 | #找x#
#include<stdio.h> #include<stdlib.h> int main() { int n; while (scanf("%d", &n) != EOF) { int inf[n]; for (int i =...
2023-02-25
0
244
题解 | #成绩排序#
#include <iostream> #include <cstdio> #include "string" #include "algorithm" //一般机试都用 库里的 sort,重点调compare交换条件 using namespace std; typedef...
2023-02-25
0
278
题解 | #对称平方数1#
#include <iostream> #include "stdio.h" bool duichen(int n2) { int ge, shi, bai, qian, wan; ge = n2 % 10; shi = (n2 / 10) % 10; b...
2023-02-22
0
275
首页
上一页
1
2
3
下一页
末页