poj2407——水题
来源:互联网 发布:如何申请淘宝小号 编辑:程序博客网 时间:2024/06/14 02:25
大水题
#include<stdio.h>int main(){ int n,i,t; while(scanf("%d",&n)&&n) { t=n; if(n==1) continue; for(i=2;i*i<=n;i++) if(n%i==0) { t=t-t/i; while(n%i==0) n/=i; } if(n!=1) t=t-t/n; printf("%d\n",t); }}
0 0
- poj2407——水题
- 【POJ2407】Relatives——欧拉数
- POJ2407
- poj2407
- poj2407
- poj2407
- poj2407
- poj2407-Relatives
- poj2407 Relatives
- [POJ2407] Relatives
- POJ2407 Relatives
- Relatives【POJ2407】
- poj2407 Relatives
- POJ2407 Relatives
- [POJ2407]Relatives
- poj2407解题报告
- poj2407 欧拉函数
- POJ2407 欧拉函数
- C#操作Access通用类实例
- 正则表达式基础(1)
- 监控session
- poj 1789 Truck History
- 【Android】TextView中Spannable对象的使用
- poj2407——水题
- Fragment 慕课网笔记
- EFI基本概念之Event
- 2286: [Sdoi]2011消耗战 ||【虚树】【树形DP】
- C#动态创建Access数据库及表的方法
- mfc中控件的使用可以查看本地pdf文件(vs2013环境)
- 初次走入深搜DFS
- android 6.0 SystemUI源码分析(1)-SystemUI介绍
- C#处理Access中事务的方法