cf 822B Crossword solving】的更多相关文章

B. Crossword solving time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve so…
B. Crossword solving time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve so…
B. Crossword solving     Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve some crosswords. It's well known that it is a very interesting occupation though it can be very difficult f…
Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve some crosswords. It's well known that it is a very interesting occupation though it can be very difficult from time to time. In the…
[题目链接]:http://codeforces.com/contest/822/problem/B [题意] 让你用s去匹配t,问你最少需要修改s中的多少个字符; 才能在t中匹配到s; [题解] O(n2)的暴力搞就好; [Number Of WA] 1 [反思] 一开始判断的时候脑抽了; 写成只有s[1]==t[1]的时候才枚举; hack点是: 很多人两重for循环,没有给j层循环加限制; 直接两层循环1..n和1..m [完整代码] #include <bits/stdc++.h> u…
A I'm bored with life 水题 #include<bits/stdc++.h> using namespace std; typedef long long int LL; const LL N=1,M=1,MOD=1; int main() {//freopen("t.txt","r",stdin); ios::sync_with_stdio(false); LL a,b; scanf("%I64d%I64d",&…
Codeforces Round #422 (Div. 2) Table of Contents Codeforces Round #422 (Div. 2)Problem A. I'm bored with lifeProblem B.Crossword solvingProblem C. Hacker, pack your bags! Problem A. I'm bored with life A. I'm bored with life Holidays have finished. T…
B. Crossword solving time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve so…
940和822两套div.2 老规矩 #define MAXN 1000000+5#define MOD 1000000007#define PI (acos(-1.0))#define EPS 1e-6#define MMT(s,a) memset(s, a, sizeof s)#define GO(i,a,b) for(int i = (a); i < (b); ++i)#define GOE(i,a,b) for(int i = (a); i <= (b); ++i)#define OG…
一. 原题链接 https://codeforces.com/contest/1494/problem/B   二. 题意 + 题解: 没看懂题目, 懵了好久, 先狡辩一下当时误解的句子, 英语是硬伤了, 呜呜 exactly U cells in the top row are black; //意为 : 最上行恰好有U个黑块 Note that you can color zero cells black and leave every cell white. // 意为 : 你可以一个方格…