Search found 4 matches

by timrau
Sat Apr 12, 2003 3:35 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152665

Hisoka wrote:Hey, why you not check your program with my sample I/O before you post your code? your program have same mistake with Nick program (cannot pass with my sample IO). :x

-HISOKA-
But...But I don't understand why your sample input is not "Jolly"? :cry:
by timrau
Tue Apr 08, 2003 1:57 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152665

Another WA without knowing the reason

[c]#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int n;
int last,now;
int ta;
int ansed;
while(scanf("%d",&n)==1)
{
ansed=0;
scanf("%d",&last);
for(ta=2;ta<=n;ta++)
{
scanf("%d",&now);
if((!ansed) && ((abs(now-last)>=n) || now==last))
{
printf("Not jolly\n");
ansed=1 ...
by timrau
Fri Feb 14, 2003 3:27 pm
Forum: Volume 104 (10400-10499)
Topic: 10452 - Marcus
Replies: 21
Views: 14319

Thank you all, and my code really get accepted after change this:
for(tb=0;tb<8;tb++)
into this:
for(tb=0;tb<7;tb++)
by timrau
Wed Feb 12, 2003 5:08 pm
Forum: Volume 104 (10400-10499)
Topic: 10452 - Marcus
Replies: 21
Views: 14319

10452 Why my code doesn't work?

This is my code. I can't find out why it doesn't work. Could anyone help me?
[c]#include <stdio.h>
int main(void)
{
int task; /* How many cases */
int m,n; /* m as rows and n as columns */
int fromy,toy; /*as the original problem says, the start point is in the last row and the end point is in ...

Go to advanced search