2 shunfurh shunfurh 于 2017.01.05 00:24 提问

For Kisses

问题描述 :

WisKey has a little lovely sister named Sweet. One day Sweet wants play a game with him. The game rules like this, in the N*N girds, you can choose K girds to make any 4 of grids not rectangles vertexes, Sweet say if WisKey can find out the max K, she will give him a Kiss !!
WoW, this is a funny and cute challenge, everybody rise UP~
This is not rectangle.
This is a rectangle.
输入:

The Sweet just has 9 questions, any questions have an N(N<=21). and WisKey want 9 Kisses!
输出:

The Sweet just has 9 questions, any questions have an N(N<=21). and WisKey want 9 Kisses!
样例输入:

1
2
3
4
5
6
7
13
21
样例输出:

1
3
.
.
.

1个回答

caozhy
caozhy   Ds   Rxr 2017.01.12 00:44
已采纳
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
A Box Full Of Kisses
A Box Full Of Kisses Once upon a time, a man punished his 5-year-old daughter for using up the family's only roll of expensive gold wrapping paper. Money was tight, and he became even more upset whe
鹅妈妈童谣
Wash the dishes, Wipe the dishes, Ring the bell for tea; Three good wishes, Three good kisses, I will give to thee. 洗洗碗盘, 擦擦碗盘, 摇铃来杯茶; 三个愿望, 三个甜吻, 我要送給你  Rain on the green grass, Rain
【codechef】Kisses(dp,技巧题)
Mohit and his girlfriend are playing a game named 'Ascending sort'. The norms of the game are as follows : Initialy N integers are taken randomly and are kept on the table. The one who makes these
MS kisses Novell:商人的游戏
微软与Novell签订了协议,双方致力于让Suse Linux和Windows在服务器上和平共处,这条轰动性新闻,包括CSDN在内的国内媒体也都有报道。 在一封给开源社区的公开信中,微软和Novell透露了协议的覆盖的范围,包括专利纠纷、虚拟环境和虚拟环境管理、Open Office XML、Mono/OpenOffice/Samba侵权豁免等内容。值得注意的是,公开信中称,微软意识到Linux已
MS kisses Novell:商人的游戏
微软与Novell签订了协议,双方致力于让Suse Linux和Windows在服务器上和平共处,这条轰动性新闻,包括CSDN在内的国内媒体也都有报道。 在一封给开源社区的公开信中,微软和Novell透露了协议的覆盖的范围,包括专利纠纷、虚拟环境和虚拟环境管理、Open Office XML、Mono/OpenOffice/Samba侵权豁免等内容。值得注意的是,公开信中称,微软意识到Linu
[英语歌曲]蝴蝶之吻:Butterfly kisses
我听之我见: 美国抒情乡村歌手Bob Carlisle在他女儿Brooke十六岁的生日前夕,看着女儿长大成人,不久就要远走高飞,心中不免感慨万千,于是写下这首歌。Bob以沉稳柔情的嗓音,伴以吉它委婉的合弦,深邃真情的唱出了伟大的父爱。歌中唱到一个父亲对女儿从小到大的很多美好回忆,最动人最难忘的就是那每日睡前祷告后的“Butterfly Kisses”。这首歌把一个父亲对女儿的爱写得感人致极,现在这