摘要:
#include <bits/stdc++.h> using namespace std; using ll = long long ; const int N = 35; int dp[N][10]; void init() { for(int i=0;i<=9;i++) if(i!=4) dp[ 阅读全文
摘要:
https://ac.nowcoder.com/acm/contest/11212/E #include<bits/stdc++.h> using namespace std; // define a point class to store a point class Point { public 阅读全文
摘要:
ios::cin.sync() ///清空缓冲区 ios::cin.rdstate() ///0表示正常输入数据类型,4表示发生错误 #include <iostream> int main() { int x; std::cin>>x;//1 2 std::cin.sync(); int y; s 阅读全文
摘要:
暴力枚举所有状态 先将第一行都变成1 再将中间三行编程1 判断最后一行是不是全是1 记录答案存最小步数 #include <bits/stdc++.h> using namespace std; using ll = long long ; int dx[]={1,-1,0,0,0}; int dy 阅读全文