It seems the existing topic is closed and I cannot reply that one.
My code also get WA, tried many times, no clue, any help?
#include <cstdio>
#include <cstring>
using namespace std;
int buffer[200000 + 200000 + 200000 + 4];
int input[200004];
void update(int v, int begin, int end, int idx ...
Search found 3 matches
- Tue Jul 01, 2014 10:17 am
- Forum: Volume 120 (12000-12099)
- Topic: 12086 - Potentiometers
- Replies: 14
- Views: 4604
- Fri Jun 27, 2014 11:03 am
- Forum: Volume 120 (12000-12099)
- Topic: 12086 - Potentiometers
- Replies: 14
- Views: 4604
12086 Potentiometers WA
try many times, still don't find why it's WA
any test case? thanks in advance.
#include <cstdio>
#include <cstring>
using namespace std;
int buffer[200000 + 200000 + 200000 + 4];
int input[200004];
void update(int v, int begin, int end, int idx)
{
// printf("update %d begin = %d end = %d\n", idx ...
any test case? thanks in advance.
#include <cstdio>
#include <cstring>
using namespace std;
int buffer[200000 + 200000 + 200000 + 4];
int input[200004];
void update(int v, int begin, int end, int idx)
{
// printf("update %d begin = %d end = %d\n", idx ...
- Fri Jun 27, 2014 11:00 am
- Forum: Volume 120 (12000-12099)
- Topic: 12086 - Potentiometers
- Replies: 14
- Views: 4604
12086 - Potentiometers
segment tree is used, still don't find why it's WA
any test case? thanks in advance.
#include <cstdio>
#include <cstring>
using namespace std;
int buffer[200000 + 200000 + 200000 + 4];
int input[200004];
void update(int v, int begin, int end, int idx)
{
// printf("update %d begin = %d end = %d\n ...
any test case? thanks in advance.
#include <cstdio>
#include <cstring>
using namespace std;
int buffer[200000 + 200000 + 200000 + 4];
int input[200004];
void update(int v, int begin, int end, int idx)
{
// printf("update %d begin = %d end = %d\n ...