【HDOJ6322】Euler Function(数论)

题意:

思路:

 1 #include <stdio.h>
 2 #include <vector>
 3 #include <algorithm>
 4 #include <string.h>
 5 #include <limits.h>
 6 #include <string>
 7 #include <iostream>
 8 #include <queue>
 9 #include <math.h>
10 #include <stack>
11 #include <map>
12 #define left (now<<1)
13 #define right ((now<<1)+1)
14 #define mid ((l+r)>>1)
15 using namespace std;
16 typedef long long int lint;
17 
18 const int MAXN = 1e5 + 10;
19 
20 int t,n;
21 
22 int main(){
23     scanf("%d",&t);
24     while(t--){
25         scanf("%d",&n);
26         if(n == 1){ printf("5\n"); continue;}
27         printf("%d\n",n + 5);
28     }
29     return 0;
30 }

 

posted on 2018-08-02 10:42  myx12345  阅读(162)  评论(0编辑  收藏  举报

导航