Search found 93 matches
- Mon Jun 09, 2003 4:50 am
- Forum: Volume 102 (10200-10299)
- Topic: 10286 - Trouble with a Pentagon
- Replies: 7
- Views: 5044
10286 - Trouble with a Pentagon
What are we looking for actually ??? can I use the height of the pentagon to define the side length ??? code : #include <math.h> #include <stdio.h> int main ( void ) { long double s , output , pi = 3.1415926535897932384626433832795 ; /* freopen ( "10286.in" , "r" , stdin ) ; freopen ( "10286.out" , ...
- Mon Jun 09, 2003 4:46 am
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 28362
10279 - Minesweeper again - help
I don't get it... what is the meaning by this : "If a mine has been touched, all positions with a mine should contain an asterisk. All other positions should contain a period." Is that mean if a mine has been touched, we only have to output the map contains asteriks and periods ... ???? please help ...
- Sat May 24, 2003 10:57 am
- Forum: Volume 103 (10300-10399)
- Topic: 10339 - Watching Watches
- Replies: 10
- Views: 3095
10339 - Why WA ???
#include <stdio.h> int main ( void ) { long double result ; int late1 , late2 , input1 , input2 ; unsigned long day ; int hour , minute ; /* freopen ( "10339.in" , "r" , stdin ) ; freopen ( "10339.out" , "w" , stdout ) ;*/ while ( scanf ( "%i %i" , &late1 , &late2 ) != EOF ) { input1 = late1 ; inpu...
- Sat May 24, 2003 7:04 am
- Forum: Volume 100 (10000-10099)
- Topic: 10023 - Square root
- Replies: 121
- Views: 27662
#include <stdio.h> #include <string.h> int main ( void ) { unsigned long NumOfCase , length , i , j ; long double bedivide , divider ; char input[10000] ; freopen ( "10023.in" , "r" , stdin ) ; freopen ( "10023.out" , "w" , stdout ) ; scanf ( "%li\n\n" , &NumOfCase ) ; while ( NumOfCase -- ) { gets...
- Fri May 23, 2003 9:46 am
- Forum: Volume 100 (10000-10099)
- Topic: 10018 - Reverse and Add
- Replies: 169
- Views: 17908
- Fri May 23, 2003 9:40 am
- Forum: Volume 100 (10000-10099)
- Topic: 10023 - Square root
- Replies: 121
- Views: 27662
10023 - Square root
is there any special input to be considered ... ?
the input will always be an ordinary numbers right ?
the input will always be an ordinary numbers right ?
- Wed May 21, 2003 1:48 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10018 - Reverse and Add
- Replies: 169
- Views: 17908
10018
I don't get it. Why did I get WA ???? Any sugesstion ??? #include <stdio.h> #include <string.h> unsigned long reverse ( unsigned long ) ; int main ( void ) { unsigned long input , addition ; int iteration , NumOfCase ; char temporary[100] ; /* freopen ( "10018.in" , "r" , stdin ) ; freopen ( "10018....
- Wed May 21, 2003 10:27 am
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 53777
- Tue May 20, 2003 3:23 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 53777
10070 - Leap Year or Not Leap Year and ...
I need some suggestion here ...
Do I have to use very long number in this case ???
Can I just use int or long ???
please help!
Do I have to use very long number in this case ???
Can I just use int or long ???
please help!
- Wed May 07, 2003 10:57 am
- Forum: Volume 101 (10100-10199)
- Topic: 10193 - All You Need Is Love
- Replies: 23
- Views: 9458
I have changed my code a little and it still got WA... Any more suggestion or sample inputs ? #include <math.h> #include <stdio.h> int main ( ) { int i , j , len , NumOfCase ; unsigned long input1 , input2 , temp ; char preinput1[100] , preinput2[100] , flag ; double limit ; /* freopen ( "10193.in" ...
- Wed May 07, 2003 10:51 am
- Forum: Volume 101 (10100-10199)
- Topic: 10125 - Sumsets
- Replies: 50
- Views: 15463
Hi , experience posters. Can you help me with this coding ? why I got WA ???? please help !!! #include <stdio.h> int main ( void ) { long sequence[1010] , input ; int NumOfElement , i , j , k , l ; char flag ; /* freopen ( "10125.in" , "r" , stdin ) ; freopen ( "10125.out" , "w" , stdout ) ;*/ while...
- Wed Apr 30, 2003 9:33 am
- Forum: Volume 3 (300-399)
- Topic: 371 - Ackermann Functions
- Replies: 196
- Views: 28669
- Wed Apr 30, 2003 6:34 am
- Forum: Volume 101 (10100-10199)
- Topic: 10193 - All You Need Is Love
- Replies: 23
- Views: 9458
this is my code ... include <math.h> #include <stdio.h> int main ( ) { int i , j , len , NumOfCase ; unsigned long input1 , input2 , temp ; char preinput1[100] , preinput2[100] , flag ; double limit ; /* freopen ( "10193.in" , "r" , stdin ) ; freopen ( "10193.out" , "w" , stdout ) ;*/ scanf ( "%i\n"...
- Wed Apr 30, 2003 6:29 am
- Forum: Volume 3 (300-399)
- Topic: 382 - Perfection
- Replies: 95
- Views: 19215
382 - Perfection - Why WA ?
any suggestion ? please help ! code : #include <math.h> #include <stdio.h> int main ( ) { unsigned ToBeTest , i , j ; unsigned long counter ; double limit ; /* freopen ( "382.in" , "r" , stdin ) ; freopen ( "382.out" , "w" , stdout ) ;*/ printf ( "PERFECTION OUTPUT\n" ) ; while ( 1 ) { scanf ( "%u" ...
- Wed Apr 30, 2003 6:22 am
- Forum: Volume 3 (300-399)
- Topic: 371 - Ackermann Functions
- Replies: 196
- Views: 28669
371 - Ackermann Functions
This is my code , please help : #include <stdio.h> int main ( ) { unsigned long result , counter , x , temp , tempmax , i , j ; /* freopen ( "371.in" , "r" , stdin ) ; freopen ( "371.out" , "w" , stdout ) ;*/ while ( 1 ) { scanf ( "%lu %lu" , &i , &j ) ; if ( i == 0 && j == 0 ) break ; printf ( "Bet...