超分重建数据集 DIV2K & Flickr2K 下载地址: DIV2K 如下图 常规的SR训练,我们会需要 下载 X2、X3、X4、X8 以及原始 train 和 Valid
原创 2022-09-21 11:33:37
3355阅读
【链接】h在这里写链接【题意】在这里写题意【题解】转换一下就是求n和10^k的最小公倍数。【错的次数】0【反思】在这了写反思【代码】#include using namespace std;long long n, k;long long temp;long long gcd(long long a...
转载 2017-10-04 18:44:00
75阅读
2评论
k-String time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A string is called a k-string i
转载 2017-05-17 14:30:00
994阅读
2评论
题目链接 链接 翻译 给你一个每个节点都有 \(k\) 个孩子的无限树,和第 \(i\) 个孩子的连边的权值为 \(i\)。 让你找路径数,这个路径要满足以下条件: 从根开始 路径的权值和为n 至少有一条边的权值大于等于d 问你路径数目。 题解 动态规划 设 \(f[i][j]\) 表示权值和为 \
转载 2020-11-29 19:39:00
49阅读
2评论
比赛连接: 半天才做出B,更半天才做出C——因为少考虑了一种情况,C还WA了两次,最后才过的…… ##A ###分析: 相当于两边同时$+x$,然后一边$+k$、一边$-k$。稍微判断一下就好了。 代码如下 #include<iostream> using namespace std; int T, ...
转载 2021-08-30 11:19:00
118阅读
2评论
https://codeforces.com/contest/1296/problem/C 题意:给一个只包含RLDU(向上下左右走)字符的字符串,问哪一段连续字符,最终位置保持不变,要求去除的字符最短; 1 #include<bits/stdc++.h> 2 using namespace std
转载 2020-02-09 21:04:00
95阅读
2评论
B. Gerald is into Art time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Gerald bought two very rare paintings at the Sotheby's a
转载 2017-06-20 12:11:00
104阅读
2评论
转载 2013-03-26 16:26:00
58阅读
2评论
这是一道二进制思维题; 将所有数字列成二进制形式,然后找出最大的一位“1”出现一次的位数; 然后把这个数提到前面,其他照常输出即可 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+10; 4 int a[ma
转载 2020-02-10 10:13:00
42阅读
2评论
255pt:题意:给一个01矩阵,要求改变一行和一列是它的总和最大,求最大的总和,枚举行列,然后取抑或O(n^3)做即可;#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include <stack>#include <set>#include <map>#include <string>#define CL(a
转载 2012-09-07 21:26:00
112阅读
2评论
所有的v要么是g,要么d,bfs把所有的快求出来,假设为n,则最后的总数为2^n - 1View Code #line 5 "GooseInZooDivTwo.cpp"#include <iostream>#include <cstdio>#include <cm
转载 2013-05-04 12:06:00
87阅读
2评论
#define mem(a,x) memset(a,x,sizeof(a)) #defin...
原创 2022-03-13 11:02:15
76阅读
A:判断一下就可以了 #include<bits/stdc++.h> using namespace std; typedef long long ll; int a, b, c, n; ll ans; int main() { scanf("%d%d%d%d", &a, &b, &c, &n);
转载 2017-05-15 20:18:00
47阅读
2评论
这场滑铁卢了,掉三分,主要是将D题看错题了,以为是二分图匹配去了,想了很久。水题,别读错题就OK了A. Paint the Numbers水题#include<bits/stdc++.h>#define rep(i,a,b) for(int i=a;i<=(b);++i)#define mem(a,x) memset(a,x,sizeof(a))#defin...
原创 2021-09-06 14:15:23
65阅读
链接: https://codeforces.com/contest/1282/problem/B2 题意: This is the hard version of this problem. The only difference is the constraint on k — the numb
转载 2019-12-25 20:43:00
200阅读
2评论
output standard output Alice and Bob play a game. There is a paper strip which is divided into n + 1 cells numbered from left to right starting from 0
原创 2021-09-01 15:11:33
105阅读
C. K-special Tablestime limit per test2 secondsmemory limit per test
原创 2023-05-15 00:33:54
49阅读
比赛链接:Here 1530A. Binary Decimal 现在规定一种只由0和1组成的数字,我们称这种数字为二进制数字,例如10,1010111,给定一个数n,求该数字最少由多少个二进制数字组成. 水题, 每取一个二进制数字,可以使得原数字n上各位都减小1或者0,为了使次数尽可能地小,那么当原 ...
转载 2021-07-20 14:10:00
230阅读
2评论
原创 2022-09-26 17:48:50
189阅读
Codeforces Round #733 (Div. 1 + Div. 2) A 略 B 略 C 略 D 题意就是构造一个错位排列 \(b\),和 \(a\) 相同的位置尽量多。 设 \(a_i\) 有 \(num\) 种,答案只能为 \(num/num-1\)。首先给每个 \(a_i\) 随便配 ...
转载 2021-07-29 10:48:00
276阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5