include [HTML_REMOVED]
using namespace std;
int main() {
int n;
cin>>n;
while(n – ){
int a;
cin>>a;
int res = a;
for(int i = 2;i <= a/i;i ++)
if(a % i == 0){
res = res / i * (i-1);
while( a % i == 0) a /= i;
}
if( a > 1 ) res = res / a * ( a - 1 );
cout << res << endl;
}
return 0;
}
兄弟有时间填个邀请码hhhhhhhhh(可以得AC币,邀请码在学生认证那填) 我的邀请码是:GUDFH