Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Runtime Error??????????????? thanks

Posted by kuangwenkui at 2007-06-10 17:00:27 on Problem 3085
#include<stdio.h>
main()
{int i,j,a[100],q,d,n,p,x;
   scanf("%d",&x);
   for(i=0;i<x;i++)
     scanf("%d",&a[i]);
   for(i=0;i<x;i++)
     {q=a[i]/25;
      d=(a[i]-q*25)/10;
      n=(a[i]-q*25-d*10)/5;
      p=(a[i]-q*25-d*10-n*5);
     printf("%d %d QUARTER(S), %d DIME(S), %d NICKEL(S), %d PENNY(S)\n",i+1,q,d,n,p);
    }

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator