循环多少次? Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2839 Accepted Submission(s): 1028 Problem Description 我们知道,在编程中,我们时常须要考虑到时间复杂度.特别是对于循环的部分. 比如, 假设代码中出现 for(i=1;i<=n;i++) OP ; 那么做了n次O…
/* 最小公倍数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 32933 Accepted Submission(s): 18398 Problem Description 给定两个正整数,计算这两个数的最小公倍数. Input 输入包括多组測试数据,每组仅仅有一行,包括两个不大于1000的正整数. Output 对于每一…
/* 放大的X Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8866 Accepted Submission(s): 2678 Problem Description 请你编程画一个放大的'X'. 如3*3的'X'应例如以下所看到的: X X X X X 5*5的'X'例如以下所看到的: X X X X X X X…
/* 2^x mod n = 1 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11800 Accepted Submission(s): 3673 Problem Description Give a number n, find the minimum x(x>0) that satisfies 2^x mod n = 1.…
/* Lowest Bit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7775 Accepted Submission(s): 5714 Problem Description Given an positive integer A (1 <= A <= 100), output the lowest bit of A.…
/* hdu 1999 不可摸数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8274 Accepted Submission(s): 2122 Problem Description s(n)是正整数n的真因子之和.即小于n且整除n的因子和.比如s(12)=1+2+3+4+6=16.假设不论什么 数m.s(m)都不等于n,则…