U475696 【数据加强版】P10635 BZOJ3517 翻硬币

题目背景

[![](https://img.shields.io/badge/题目-P10635_BZOJ3517_翻硬币-green) ![](https://img.shields.io/badge/难度-提高+/省选−-blue) ![](https://img.shields.io/badge/考点-构造(位运算)-red) ![](https://img.shields.io/badge/题型-传统题-yellow)](https://www.luogu.com.cn/problem/P10635) [![](https://img.shields.io/badge/作者-wangbinfeng(387009)-purple)](https://www.luogu.com.cn/user/387009) --- 数据过大无法上传附件,我的代码可以在 350ms 内跑完。 - $n=10^4$

题目描述

生成数据的代码(我的代码): ```cpp #include using namespace std; const int maxn=1e4+9; int n,ans,a[maxn][maxn],line[maxn],column[maxn]; string s; signed main(){ //freopen("test.in","r",stdin); ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr); cin>>n; for(int i=1;i>s; for(int j=1;j

输入格式

输出格式