Search found 173 matches

by A1
Thu Jan 31, 2008 1:12 am
Forum: Volume 2 (200-299)
Topic: 210 - Concurrency Simulator
Replies: 16
Views: 7539

hope you already solved it :)
if not, then you can try this input output:

Code: Select all

1

3 1 1 1 1 1 3
a = 5
print a
end
b = 7
lock
print a
print b
unlock
c = 10
print a
end
print a
print b
lock
print c
unlock
end

-------------------output-------------
1: 5
2: 5
3: 5
3: 7
2: 7
3: 10
2: 5
by A1
Sat Jan 19, 2008 8:17 pm
Forum: C
Topic: link for GNU C compiler
Replies: 4
Views: 5613

I don't think there exist any compiler which have these kind of options like -DONLINE_JUDGE !! :o
I personally use DJGPP, AFAIK It is the same gcc of Linux for windows. :)
by A1
Mon Nov 05, 2007 11:01 pm
Forum: Volume 101 (10100-10199)
Topic: 10188 - Automated Judge Script
Replies: 58
Views: 36477

Fuad Hassan EWU wrote:I am getting WA continuously.....
Try these inputs:

Code: Select all

3
123
123
123
1
123123123

1
123
2
1
23

2
123
123
1
12312

1
12
1
123

1
123
1
12

0

Output should be:

Code: Select all

Run #1: Presentation Error
Run #2: Presentation Error
Run #3: Wrong Answer
Run #4: Wrong Answer
Run #5: Wrong Answer
by A1
Mon Oct 29, 2007 10:10 pm
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 133
Views: 44534

Re: TLE

I am getting TLE in this problem,Why??? :oops: :evil: . I used DFS. you are getting TLE because of this part: while(1){ gets(str); if(str[0]==0)break; ...... ...... } as the problem statement says: Input is terminated by a blank line. but i guess this last line contents some white space. so the whi...
by A1
Fri Oct 26, 2007 11:05 pm
Forum: Bugs and suggestions
Topic: Sugestion
Replies: 4
Views: 2871

I want to add some more: [*] There should be a submit page like old system where we will type the problem number and submit the code. [*] In user profile there should be a option to select the favorite Compiler, so whenever an user will try to submit any code, that selected Compiler will get selecte...
by A1
Mon Sep 03, 2007 1:11 am
Forum: Other words
Topic: "Unknown!!xxxx" in OnlineContests Final ranklist!!
Replies: 1
Views: 2632

As I suspected, those unknowns are gone now..!! But I don't understand why those Accounts got deleted!!
Is there anyone who knows any thing about it? May be Admins can give me a answer.. :-?
by A1
Fri Aug 31, 2007 3:27 am
Forum: ACM ICPC Archive Board
Topic: LA-2894 Strange Research
Replies: 6
Views: 5027

I think sample test case make you confused!!

just do this:
scanf("%d\n",&q);
by A1
Fri Aug 31, 2007 12:38 am
Forum: Other words
Topic: need some ad hoc problem
Replies: 1
Views: 2565

by A1
Fri Aug 31, 2007 12:30 am
Forum: Other words
Topic: "Unknown!!xxxx" in OnlineContests Final ranklist!!
Replies: 1
Views: 2632

"Unknown!!xxxx" in OnlineContests Final ranklist!!

Look at this link: http://acm.uva.es/contest/rankfinal.php?c=0169 There are some teams called Unknown!!xxxxx !! (may be they will be vanish after some day!!!) Why those team names become unknown?? Is OJ deleting user accounts?? Or it is some kind of bug (I believe without any explanation and declara...
by A1
Sun Aug 19, 2007 5:37 pm
Forum: Bugs and suggestions
Topic: 10679-I Love String!!! - Shallow judge data
Replies: 3
Views: 5325

10679-I Love String!!! - Shallow judge data

this code gets AC!: #include <stdio.h> #include <string.h> #define MAX 100010 int main() { char S[MAX],q[1010],c; int i,j,query,test; scanf("%d%c",&test,&c); while( test-- ) { gets(S); scanf("%d%c",&query,&c); while( query-- ) { gets(q); j = 0; for( i=0; q[i]; i++...
by A1
Sun Aug 05, 2007 12:49 am
Forum: Volume 7 (700-799)
Topic: 776 - Monkeys in a Regular Forest
Replies: 51
Views: 23666

Chetan: Add the Bold three line in your code. It will fix your input taking problem. And both of you (kolpobilashi and chetan) can try the I/O. while(1) { i f(ch==EOF)break; i=j=0; memset(seen,0x0,sizeof(seen)); memset(arr,0x0,sizeof(arr)); while((ch = getchar()) !='%') { if(ch==EOF)break; if(ch =='...
by A1
Sat Aug 04, 2007 7:44 pm
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 56600

Re: 583 RTE,help needed

:o i am getting RTE. plz explain why. for what limit i will have to generate prime? :roll: here is my code #include<stdio.h> #include<iostream> #include<math.h> .... First, Why you declare a long long(8 byte) type array for seiving..!! It is just a flag array.. so char or bool (1 byte) data type is...
by A1
Mon Jul 30, 2007 10:18 pm
Forum: Volume 7 (700-799)
Topic: 776 - Monkeys in a Regular Forest
Replies: 51
Views: 23666

You r doing DFS, which is causing stack overflow and so it is RE!
Try to convert it to BFS.
by A1
Sun Jul 29, 2007 9:31 pm
Forum: General
Topic: Problem hardness index
Replies: 7
Views: 6555

there could be some voting or rating system!! I mean every solver will rate a problem on its difficulty (maybe from 1 to 10) and offcourse the average will show real difficulty level!
by A1
Sun Jul 29, 2007 7:44 pm
Forum: Bugs and suggestions
Topic: Problem 11245
Replies: 24
Views: 11181

This problem is actually an edited version of : http://www.kalva.demon.co.uk/usa/usoln/usol951.html A MathOlympiad problem!! So the people who did practice for math olympiad problems could get it common!!! And i think, they just forgot to mention the Prime thing.. :wink: IMO: I belive that in a prog...

Go to advanced search