Search found 3 matches

by infinia249
Thu Oct 08, 2015 1:02 pm
Forum: Volume 112 (11200-11299)
Topic: 11292 - Dragon of Loowater
Replies: 10
Views: 10158

Re: 11292 - Dragon of Loowater

Testcase-wise, using uDebug's Random Input, my code outputted the correct answer. But the OJ stated it as Wrong Answer. What could be wrong here?

#include <iostream>
#include <algorithm>

using namespace std;

int main () {
int n, m;
long hd[20000], kh[20000];
while ( cin >> n >> m && n != 0 ...
by infinia249
Tue Oct 06, 2015 6:35 am
Forum: Volume 103 (10300-10399)
Topic: 10341 - Solve It
Replies: 64
Views: 45482

Re: 10341 - Solve It

Wrong Answer? Already tested this using inputs from uDebug Random Inputs, all clear. Where are the mistakes on this code? (my algorithm is somehow a brute-forced one)

#include <iostream>
#include <cmath>

using namespace std;

int main () {
short p, q, r, s, t, u;
while ( cin >> p >> q >> r >> s ...
by infinia249
Fri Oct 02, 2015 8:25 am
Forum: Volume 103 (10300-10399)
Topic: 10360 - Rat Attack
Replies: 19
Views: 49785

Re: 10360 - Rat Attack

I would like to know what caused my code to exceed the time limit. Tested the random input from uDebug and the outputs were fine.

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>

using namespace std;

int main () {
long s, d, n, x[20000], y[20000], i[20000];
// cin ...

Go to advanced search