Search found 98 matches

by hamedv
Sat Jul 21, 2007 1:58 pm
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 24891

what's the bug of my code

Code: Select all

GOT AC
by hamedv
Fri Jul 20, 2007 4:54 pm
Forum: Volume 105 (10500-10599)
Topic: 10582 - ASCII Labyrinth
Replies: 18
Views: 10792

what's the bug of my code #include <stdio.h> #define N 0 #define S 1 #define E 2 #define W 3 #define NONE 4 #define VISIT 5 int a[66][66], t, m, n, i, j, c; char s[1000]; void fill(int i, int j, int dir) { if (i >= 0 && j >= 0 && i < m && j < n && a[i][j] != VISIT && a[i][j]) { printf("%d %d\n", i, ...
by hamedv
Sun Jul 15, 2007 10:11 pm
Forum: Volume 112 (11200-11299)
Topic: 11239 - Open Source
Replies: 21
Views: 8081

what's the bug of my code??? #include <algorithm> #include <iostream> #include <string> using namespace std; string list[10005]; int list_n = 0; int p2[14]; void list_init() { int i; for (p2[0] = 1,i = 1; i < 14; i++) p2[i] = 2*p2[i-1]; } void add(string s) { list[list_n++] = s; sort(list, list+list...
by hamedv
Sun Jul 15, 2007 7:40 pm
Forum: Volume 112 (11200-11299)
Topic: 11243 - Texas Trip
Replies: 18
Views: 8331

hi;
can any one tell me his algorithm

i'm so confused :(
by hamedv
Thu Jul 12, 2007 8:00 pm
Forum: Volume 112 (11200-11299)
Topic: 11225 - Tarot scores.
Replies: 9
Views: 4578

11225 - Tarot scores.

what's wrong with my code???

Code: Select all

 GOT AC, silly mistake
by hamedv
Sat Jul 07, 2007 5:41 pm
Forum: Volume 4 (400-499)
Topic: 496 - Simply Subsets
Replies: 48
Views: 9473

the value of the numbers is not more than 1,000,000
by hamedv
Sat Jul 07, 2007 5:03 pm
Forum: Volume 112 (11200-11299)
Topic: 11231 - Black and white painting
Replies: 3
Views: 2040

thanx for your fast reply
GOT AC
by hamedv
Sat Jul 07, 2007 4:43 pm
Forum: Volume 112 (11200-11299)
Topic: 11231 - Black and white painting
Replies: 3
Views: 2040

11231 - Black and white painting

what's wrong with my code???

Code: Select all

GOT AC
by hamedv
Sat Jul 07, 2007 4:42 pm
Forum: Volume 112 (11200-11299)
Topic: 11207 - The easiest way
Replies: 27
Views: 13582

the largest square for
2 7
is
1.75
by hamedv
Thu Jul 05, 2007 8:46 pm
Forum: C++
Topic: Reading a blank line in c++
Replies: 1
Views: 2054

goto cplusplus.com and learn cin.getline()
by hamedv
Wed Jul 04, 2007 7:25 pm
Forum: Volume 112 (11200-11299)
Topic: 11205 - The broken pedometer
Replies: 25
Views: 13832

rio wrote:I used Backtrack.
There are some cases which Greedy algorithm doesn't work.

----
Rio
please give mi some of that test cases
by hamedv
Wed Jul 04, 2007 5:26 pm
Forum: Volume 112 (11200-11299)
Topic: 11201 - The problem of the crazy linguist
Replies: 21
Views: 10035

i'm using :

Code: Select all

FreePascal IDE for Win32 for i386
         Target CPU: i386
     Version 1.0.4 2005/05/08
     (Compiler Version 2.0.0)
but i got CE

Code: Select all

GOT AC
by hamedv
Fri Jun 22, 2007 6:38 pm
Forum: Volume 112 (11200-11299)
Topic: 11223 - O: dah dah dah!
Replies: 43
Views: 19138

try this :
Input:

Code: Select all

1
.-.b.-.bb.-.
Note : b = blank ' '

Correct Output:

Code: Select all

Message #1
RR R

Your Code Output:

Code: Select all

Message #1
R R  R
by hamedv
Fri Jun 22, 2007 4:52 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 35001

What's wrong with my code?? #include <stdio.h> struct team { int number, solved, time; bool submit, sp[10]; }; int t, l, i, num, minute, problem, L[5], j; char s[100]; team teams[105], tmp; int main() { scanf("%d", &t); gets(s); gets(s); for (l = 0; l < t; l++) { if (l) puts(""); for (i = 0; i < 105...
by hamedv
Wed Jun 20, 2007 4:35 pm
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 24264

What's wrong whit my code?!!

Code: Select all

GOT AC...

Go to advanced search