Search found 2 matches

by sanjoy_sust
Sat Sep 12, 2009 5:50 pm
Forum: Volume 116 (11600-11699)
Topic: 11650 - Mirror Clock
Replies: 15
Views: 2978

11650-why i get WA

#include<stdio.h> #include<math.h> int main() { int i,j,k,l,mn,hor,n,H,M,m; while(scanf("%d",&n)>0) { for(i=0;i<n;i++) { scanf("%d:%d",&H,&M); if(H<12) { mn=60-M; if(mn>0) hor=12-1-H; if(mn==0) hor=12-H; } if(H==12) { mn=60-M; if(mn==0) hor=H; if(mn>0) hor=H-1; } if(hor==0) hor=12; if(mn==60) { hor+...
by sanjoy_sust
Wed Aug 05, 2009 9:24 pm
Forum: Volume 116 (11600-11699)
Topic: 11634 - Generate random numbers
Replies: 5
Views: 1090

11634 - Generate random numbers

thanks saif ........................accepted

Go to advanced search