Search found 2 matches

by Cramer
Tue Jun 07, 2016 1:11 pm
Forum: Volume 1 (100-199)
Topic: 117 - The Postal Worker Rings Once
Replies: 58
Views: 25134

WA: 117 - The Postal Worker Rings Once

can't find out the cause for getting WA :x
possible critical input/output had been checked. :-?

#include<bits/stdc++.h>
#define total_alphabet 26

using namespace std;

int minDistance(int dist[], bool sptSet[])
{
// Initialize min value
int minima = INT_MAX, min_index;

for (int v = 0; v ...
by Cramer
Wed Aug 26, 2015 7:30 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116813

Re: 102 - Ecological Bin Packing

Can't find the reason of getting wrong answer. #include <bits/stdc++.h>
using namespace std;

unsigned b0,b1,b2,g0,g1,g2,c0,c1,c2;
bool record;
char arr[] = {'B', 'C', 'G'};
char ans[3];

/*vector<char>arr, out_view;
int taken[20] = {0};*/

unsigned calculation()
{
unsigned total = 0;
for(int i ...

Go to advanced search