Search found 3 matches

by sm_hosein
Sun Mar 18, 2007 3:27 pm
Forum: Volume 8 (800-899)
Topic: 893 - Y3K Problem
Replies: 11
Views: 11096

I am trying to solve this problem in C++ many times, but I got WA. Can anyone say the problem of my code or some Testcases which help me, please?
Here is my code:

#include <iostream>

using namespace std;

long long month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

int main ()
{
long ...
by sm_hosein
Sat Mar 10, 2007 1:51 pm
Forum: Volume 111 (11100-11199)
Topic: 11166 - Power Signs
Replies: 14
Views: 8392

Some Cases

Can anyone tells me this samples answer :

11101110111
1101101100
1010110101
11010101011
11111101111110111111

I got WA and my code's answer is :

+000-000-00-
+00-00-0-00
+0++0-0+0+
+00-0-0-0-0-
+000000-000000-00000-

If it's not true what is the true answer? And if it's true can anyone give me ...
by sm_hosein
Sat Oct 28, 2006 11:49 am
Forum: Volume 111 (11100-11199)
Topic: 11147 - KuPellaKeS BST
Replies: 12
Views: 5864

Some TestCases

Try it:

8
1
0
6
0 0 0 0 0 0
2
-1 1
4
-1 1 -1 1
5
-10 2 2 3 3
6
3 3 2 1 1 -10
9
-4 -3 -2 -1 0 1 2 3 4
10
5 4 3 2 1 -1 -2 -3 -4 -5

My AC Code's Answer:

Case #1: 0
Case #2: 0(0(0(0(0(0)))))
Case #3: -1(1)
Case #4: 1(-1(-1,1))
Case #5: 3(3(-10(2(2))))
Case #6: 3(3(-10(1(1,2))))
Case #7: -4(4(-3(3(-2 ...

Go to advanced search