![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
脑洞
zuhiul
这个作者很懒,什么都没留下…
展开
-
关于比赛中烦人的多组样例
更好的阅读体验 打比赛的时候我们经常会遇到一些多组样例的情况,通常情况下我们都是这么做的: int t; cin>>t; while(t--) { solve(); } 但是很多时候我们并不需要知道 ttt 是多少,他在我们眼里就是个 无用 的变量,但是很多时候又不得不定义,就很烦。 直到今天,我终于找到一个非常骚的操作,记录于此 #include<bits/stdc++.h> using namespace std; struct MultiCase {原创 2021-09-28 14:57:09 · 96 阅读 · 0 评论 -
codeforces 120E Put Knight!
题目链接:传送门。Petya and Gena play a very interesting game "Put a Knight!" on a chessboard n × n in size. In this game they take turns to put chess pieces called "knights" on the board so that no two knights原创 2017-11-09 19:04:02 · 429 阅读 · 0 评论 -
hdu 1808 Halloween treats
传送门:点这里。 Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so it may hap原创 2018-02-06 11:02:03 · 179 阅读 · 0 评论