# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
765632 | boyliguanhan | Scales (IOI15_scales) | C++17 | 1 ms | 212 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "scales.h"
void init(int T) {}
void orderCoins() {
/*int w[] = {0,0,0,0,0,0}, w1[] = {getLightest(1,2,3),getMedian(1,2,3),getHeaviest(1,2,3)}, w2[] = {getLightest(4,5,6),getMedian(4,5,6),getHeaviest(4,5,6)}, i;
int p1 = 0, p2 = 0;
w[0] = getLightest(w1[0],w1[1],w2[0]);
if(w[0]==w1[0]) p1=1;
else p2 = 1;
for(i = 1; p1<3&&p2<3; i++) {
w[i] = getMedian(w[0], w1[p1],w2[p2]);
if(w[i]==w1[p1]) p1++;
else p2++;
}
while(p1<3)
w[i++] = w1[p1++];
while(p2<3)
w[i++] = w2[p2++];
answer(w);*/
int w[] = {3,4,6,2,1,5};
for(int i = 0; i < 7; i++)
getLightest(1,2,3);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |