Hi Igor9669,
I think you assumed that deletion commands are given in ascending order and your program fails when deletion commands are given out of order..
try this input:
q 0
q 1
q 2
d 1000240
d 1000070
d 1000090
q 0
q 1
the correct output for the input above is:
4
10
16
3
7
Search found 8 matches
- Fri Aug 07, 2009 8:31 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11610 - Reverse Prime
- Replies: 7
- Views: 4170
- Mon Aug 04, 2008 10:33 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11476 - Factorizing Large Integers
- Replies: 17
- Views: 12318
Re: 11476
I've used Fermat's Factorization in my code, but unfortunately I'm getting Wrong Answer. I've tested my program with big primes and semiprimes in range and it works well. It's a little confusing too, because my code consumes just about 30 miliseconds on UVa's judge (I'm not sure my code is really ...
- Sat Jul 29, 2006 8:58 am
- Forum: C++
- Topic: Compile Error on using STL set...
- Replies: 2
- Views: 2067
- Tue Jul 25, 2006 10:44 am
- Forum: Off topic (General chit-chat)
- Topic: What game do you like best?
- Replies: 17
- Views: 66021
- Tue Jul 25, 2006 10:33 am
- Forum: Off topic (General chit-chat)
- Topic: How many language do you know?
- Replies: 32
- Views: 18974
- Tue Jul 25, 2006 7:22 am
- Forum: C++
- Topic: Compile Error on using STL set...
- Replies: 2
- Views: 2067
Compile Error on using STL set...
I don't know why this gets compile error, I found out that OJ gives compile error just when I use find function on a class templated set like the code below, can anyone help me out how can I use the find function on set...
#include <set>
#include <iostream>
using namespace std;
class Test ...
#include <set>
#include <iostream>
using namespace std;
class Test ...
- Sun Aug 14, 2005 3:20 pm
- Forum: Volume 7 (700-799)
- Topic: 790 - Head Judge Headache
- Replies: 49
- Views: 22771
- Sun Aug 07, 2005 2:40 pm
- Forum: Volume 3 (300-399)
- Topic: 391 - Mark-up
- Replies: 16
- Views: 5935
May this helps you !
Hi Navid,
Test this input to your program, it should generate the output
below which my Accepted Code generated.
Hope you figure out your problem with this test cases. :D
Input :
\s3.4a\sb\s.5c\s100.d\s12e
\*\b no translation should occur *\\ \b*\s3.*\*
/i/b/s\bb\ii\ss ...
Test this input to your program, it should generate the output
below which my Accepted Code generated.
Hope you figure out your problem with this test cases. :D
Input :
\s3.4a\sb\s.5c\s100.d\s12e
\*\b no translation should occur *\\ \b*\s3.*\*
/i/b/s\bb\ii\ss ...