B. Kefa and Company
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Kefa wants to celebrate his first big salary by going to restaurant. However, he needs company.
Kefa has n friends, each friend will agree to go to the restaurant if Kefa asks. Each friend …
阅读更多一开始迷之wa...
先找出素数下标的上界就可以A...
然后纠结了20分钟...
然后发现是预处理的素数少了一个素数..
我预处理是处理到<10005的素数...
最大数10000,而超过10000的第一个素数是10007
这样判断终止条件就会死循环...
sad
阅读更多不多说,直接代码。
/************************************************************************* > File Name: code/poj/2100.cpp > Author: 111qqz > Email: rkz2013@126.com > Created Time: 2015年09月25日 星期五 00时42分49秒 ************************************************************************/
1#include<iostream> …
阅读更多Jessica's Reading Problem
**Time Limit:** 1000MS **Memory Limit:** 65536K **Total Submissions:** 8787 **Accepted:** 2824 Description
Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she wants to pass it, she …
阅读更多Rabbit and Grass
**Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3058 Accepted Submission(s): 2261 **
Problem Description
大学时光是浪漫的,女生是浪漫的,圣诞更是浪漫的,但是Rabbit和Grass这两个大学女生在今年的圣诞节却表现得一点都不浪漫:不去逛商场,不去逛公园,不去和AC男约会,两个人竟然猫在寝食下棋…… 说是下棋,其实只是一个简单的小游戏而已,游戏的规则是这样的: 1、棋盘包 …
阅读更多题意&思路:巴什博奕,点m是n点。。。然后往前画即可。。。
/************************************************************************* > File Name: code/hdu/2149.cpp > Author: 111qqz > Email: rkz2013@126.com > Created Time: 2015年09月22日 星期二 20时18分02 …
阅读更多题目链接:hdu 2188题目链接
题意&思路:巴什博奕。。画n点p点。。。
/************************************************************************* > File Name: code/hdu/2188.cpp > Author: 111qqz > Email: rkz2013@126.com > Created Time: 2015年09月22日 星期二 20时08分08秒 ************************************************************************/ …
阅读更多