Submission #398285

#TimeUsernameProblemLanguageResultExecution timeMemory
398285MeGustaElArroz23저울 (IOI15_scales)C++14
20.29 / 100
1 ms332 KiB
#include "scales.h" #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; void init(int T) { return; } int c; //getHeaviest(A, B, C), getLightest(A, B, C), getMedian(A, B, C) int menor(int a, int b){ if (a==c) return true; if (b==c) return false; return (getMedian(a,b,c)==a); } void orderCoins() { int W[]={1,2,3,4,5,6}; int a=getLightest(1,2,3); int b=getLightest(4,5,6); c=a+1; if (c==b) c++; c=getLightest(a,b,c); sort(W,W+6,menor); answer(W); }

Compilation message (stderr)

scales.cpp: In function 'void init(int)':
scales.cpp:8:15: warning: unused parameter 'T' [-Wunused-parameter]
    8 | void init(int T) {
      |           ~~~~^
#Verdict Execution timeMemoryGrader output
Fetching results...