Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
帮我看看一下思路#include <stdio.h> #include <conio.h> int m,n,i,j,t,k; int main(){ scanf("%d",&t); for(i=0;i<t;i++) { m=0; scanf("%d",&k); for(j=k+1;j<=2*k;j++) if((k*j)%(j-k)==0) m++; printf("Scenario #%d:\n",i+1); printf("%d\n\n",m); } getch(); return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator