#include #include #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000"); #define EPS (1e-6) #define LL long long #define ULL unsigned long long #define _LL __int64 #define INF 0x3f3f3f3f #define Mod 1000000007 using namespace std; int p; unsigned euler(unsigned x) { unsigned i,res=x; for(i=2;i<(int)sqrt(x*1.0)+1;i++) if(x%i==0) { res=res/i*(i-1); while(x % i==0) x/=i; } if(x>1) res=res/x*(x-1); return res; } int main() { while(scanf("%d",&p)!=EOF) { printf("%d\n",euler(p-1)); } return 0; }
HDU 5073 Galaxy Descriptio
實現回調的三種方式(C風格的回調函數, S
leetcode_142_Linked List Cycle
leetcode筆記:Leetcode Letter Com
錯誤: strdup was not declare
屬性的存儲 屬性的主要作用是存儲數據,可以常量屬性和變