HDU 1405 The Last Practice】的更多相关文章

http://acm.hdu.edu.cn/showproblem.php?pid=1405 题目大意: 给你一个数,让你分解素因子,输出它的各次幂. 如60 输出:2 2 3 1 5 1 (60=2^2*3^1*5^1) 思路: 先筛选出素数,然后除以每个素数,看看有几个.. 注意格式坑爹,每次幂之后都要有空格.PE了 还有就是是以负数结束输入.我看样例直接以为是-1,WA了... 再次就是HDU晚上作死,一直都是Queuing状态. #include<cstdio> #include<…
The Last Practice Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9226    Accepted Submission(s): 1960 Problem Description Tomorrow is contest day, Are you all ready?We have been training for 45…
Description Tomorrow is contest day, Are you all ready?  We have been training for 45 days, and all guys must be tired.But , you are so lucky comparing with many excellent boys who have no chance to attend the Province-Final. Now, your task is relaxi…
The Last Practice Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9037    Accepted Submission(s): 1905 Problem Description Tomorrow is contest day, Are you all ready?We have been training for 45…
题意: 输入一个数n,输出它的素因子与这个素因子出现的次数. 分析: 用欧拉函数,变下形就好了,不再过多解释. 代码如下: #include <iostream> #include <cstdio> #include <cstring> #include <fstream> #include <ctime> #include <cmath> #include <cstdlib> #include <algorithm…
A+B for Input-Output Practice (VIII) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 135986    Accepted Submission(s): 41510 Problem Description Your task is to calculate the sum of some intege…
A+B for Input-Output Practice (VII) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 62483    Accepted Submission(s): 41718 Problem Description Your task is to Calculate a + b.   Input The input…
A+B for Input-Output Practice (VI) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 63087    Accepted Submission(s): 42387 Problem Description Your task is to calculate the sum of some integers.…
A+B for Input-Output Practice (V) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 67443    Accepted Submission(s): 45101 Problem Description Your task is to calculate the sum of some integers.…
A+B for Input-Output Practice (IV) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 90793    Accepted Submission(s): 48215 Problem Description Your task is to Calculate the sum of some integers.…