-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCOOK82B.cpp
More file actions
50 lines (40 loc) · 768 Bytes
/
COOK82B.cpp
File metadata and controls
50 lines (40 loc) · 768 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// https://www.codechef.com/problems/COOK82B
#include<bits/stdc++.h>
using namespace std ;
#define Fors(n) for(int i=1;i<=n;i++)
#define For(n) for(i=0;i<n;i++)
#define ll long long
#define vint(s) vector<int> s
#define pb(x) push_back(x)
#define mpair(x,y) make_pair(x,y)
#define MOD 1000000007
#define mod 100000
ll x=0,y=0,s=0,n=0,i=0;
vint(v);
bool prime[mod] ;
void seive(){
int t ;
For(mod){
prime[i] = 1 ;
}
prime[1]=0 ;
prime[0]=0 ;
for(i=2;i<100000;i++){
if(prime[i]=1){
v.pb(i);
for(j=i*i;j<100000;j+=i){
prime[i] = 0 ;
}
}
}
}
int main(){
cin>>n ;
int a[n];
For(n){
cin>>a[i];
}
For(n){
}
return 0;
}