07 2017 档案

摘要:很多时间超限的问题都与素数有关 #include <stdio.h>#define maxn 1000000//根据题意大概估算范围;int prime[maxn];void get_prime(){ for(int i=2;i<maxn;i++) { if(!prime[i]) { for(int 阅读全文
posted @ 2017-07-02 18:32 少年爱啪啪 阅读(675) 评论(0) 推荐(0)
摘要:Gargari is jealous that his friend Caisa won the game from the previous problem. He wants to prove that he is a genius. He has a n × n chessboard. Eac 阅读全文
posted @ 2017-07-02 17:37 少年爱啪啪 阅读(264) 评论(0) 推荐(0)
摘要:Little Joty has got a task to do. She has a line of n tiles indexed from 1 to n. She has to paint them in a strange pattern. An unpainted tile should 阅读全文
posted @ 2017-07-02 17:16 少年爱啪啪 阅读(1020) 评论(0) 推荐(0)