Search found 15 matches

by Mohamed Abd El-Monem
Fri Dec 18, 2009 5:47 am
Forum: Volume 103 (10300-10399)
Topic: 10342 - Always Late
Replies: 25
Views: 15817

Re: 10342 - Always Late

hi All,
I tried all the cases on the forum and my code produce the same output, any other tricky cases ?!

here is my code

Code: Select all

Accepted
Thanks in advance.
by Mohamed Abd El-Monem
Mon Oct 05, 2009 10:11 am
Forum: Volume 116 (11600-11699)
Topic: 11693 - Speedy Escape
Replies: 7
Views: 4383

Re: 11693 - Speedy Escape

hey :D
by Mohamed Abd El-Monem
Sat Oct 03, 2009 5:11 pm
Forum: Volume 116 (11600-11699)
Topic: 11693 - Speedy Escape
Replies: 7
Views: 4383

11693 - Speedy Escape

Hi all,

I got WA in this problem this is what I do:-
1- calculate the shortest path between the brothers start and all exits using dijkstra.
1- calculate the shortest path between the police start and all exits using dijkstra.
3- for(i = 0 to e)
if (brotherDistance > policeDistance)
continue ...
by Mohamed Abd El-Monem
Thu Sep 03, 2009 12:08 am
Forum: Volume 108 (10800-10899)
Topic: 10801 - Lift Hopping
Replies: 56
Views: 37230

Re: 10801 - Lift Hopping

hi all

how could i know number of changing elevators?

thanx in advance
by Mohamed Abd El-Monem
Fri Sep 26, 2008 4:09 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 96715

Re: 10200 - Prime Time

Why TLE :oops: :oops:

I first generate all primes from 0 to 100010041 , and save them in array

then count the number of deprime from 0 to i from 0 to 10000

this is my code ,, any help please

Code: Select all

 deleted 
thanx in advance
by Mohamed Abd El-Monem
Thu Jun 12, 2008 10:01 pm
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 25879

Re: 640 - Self Numbers

thanks jan , really what about 1000000 :lol:
,I have got accepted
by Mohamed Abd El-Monem
Thu Jun 12, 2008 5:25 pm
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 25879

Re: 640 - Self Numbers

this is the last Self numbers my code generated

999943
999945
999956
999967
999978
999989

what is the missing one here :roll:
i get WA

this is my code ,, plz any help.. thanx in advace

Code: Select all

Deleted After accepted
by Mohamed Abd El-Monem
Thu Jun 12, 2008 12:28 am
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 34146

Re: 11371 - Number Theory for Newbies

thaaax rio I get accepted
by Mohamed Abd El-Monem
Fri May 30, 2008 12:23 am
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 34146

Re: 11371 - Number Theory for Newbies

i changed my code and modified it but I still get WA :cry:

Code: Select all

deleted after accepted
by Mohamed Abd El-Monem
Mon Apr 28, 2008 4:52 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 34146

Re: 11371 - Number Theory for Newbies

i tried all test cases and get correct answer
but i get WA from the judje
please any help
this is my code
# include <iostream>
# include <algorithm>
# include <stdlib.h>
# include <string>
using namespace std;


long long int GetIntVal(string strConvert)
{
long long int intReturn;

intReturn ...
by Mohamed Abd El-Monem
Sun Apr 20, 2008 1:52 am
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 43212

Re: 10279 - Mine Sweeper

commented it but still WA :s
by Mohamed Abd El-Monem
Fri Apr 18, 2008 4:15 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124813

Re: 10189 - Minesweeper

Jan wrote:The problem states...
There must be an empty line between field outputs.
But you are printing an empty line after each input set.
thanx Jan i get AC in Minesweeper but now I get WA in Mine Sweeper :D
I waiot your advice in the other thread thanx very much
by Mohamed Abd El-Monem
Fri Apr 18, 2008 4:10 am
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 43212

Re: A question of format, problem 10279 Minesweeper

hey all
i tried this test cases but i still get WA
this is my code and any one help me please
# include <iostream>

using namespace std;





int main()
{
int numOfgames;
cin>>numOfgames;
cout<<endl;
bool blank = false;
for (int N=0;N<numOfgames;N++)
{
if (blank)
cout<<endl;
int numOfR ...
by Mohamed Abd El-Monem
Sat Apr 12, 2008 4:00 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124813

Re: 10189 awful really awful WA!!!!!!

i get WA and i didn't know my error
help me pleaaas :cry:
this is my code

# include <iostream>
using namespace std;


int main()
{
int numberOfRows,numberOfColumns,counter=1;
while(cin>>numberOfRows>>numberOfColumns)
{
if (numberOfRows == 0 && numberOfColumns == 0)
break;

char board[110 ...
by Mohamed Abd El-Monem
Tue Apr 01, 2008 11:07 pm
Forum: Volume 102 (10200-10299)
Topic: 10245 - The Closest Pair Problem
Replies: 92
Views: 33529

Re: 10245 Trick input?

I'm a beginer in c++, and I get TLE in this problem

PLZ any one tell me what make it TLE

this is my code

# include <iostream>
# include <cmath>
# include <iomanip>
using namespace std;

struct Dimension
{
double X_coordinate;
double Y_coordinate;
};


double DISTANCE[49995500];

int main ...

Go to advanced search