[Offer收割]编程练习赛12 register

Ended

Participants:1323

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-02 12:41:02

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
using namespace std;
typedef uint8_t byte;
typedef uint32_t uint;
typedef int64_t ll;
#define AUTO(name,exp) __typeof(exp) name=exp
#define TR(i,obj) for(__typeof((obj).begin()) i=(obj).begin();i!=(obj).end();++i)
const int tsize=1<<20;
bool ispri[tsize];
int n;
int main() {
    memset(ispri,1,sizeof(ispri));
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX