제출 #906203

#제출 시각아이디문제언어결과실행 시간메모리
906203Macker앵무새 (IOI11_parrots)C++14
52 / 100
3 ms1324 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define all(v) v.begin(), v.end() //#pragma GCC optimize("Ofast") //#pragma GCC target("avx2") void encode(int N, int M[]) { vector<int> v(N); for (int i = 0; i < N; i++) { v[i] = M[i]; } int leni = (1 << 6); int len = (1 << 2); for (int i = 0; i < N; i++) { for (int j = 0; j < 4; j++) { int a = (4 * i + j) * len; int x = v[i] % len; send(x + a); v[i] /= len; } } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define all(v) v.begin(), v.end() //#pragma GCC optimize("Ofast") //#pragma GCC target("avx2") void decode(int N, int L, int X[]) { int leni = (1 << 6); int len = (1 << 2); sort(X, X + L); for (int i = 0; i < N; i++) { int res = 0; for (int j = 0; j < 4; j++) { int x = X[4 * i + j] % len; res += x * (1 << 2 * j); } output(res); } }

컴파일 시 표준 에러 (stderr) 메시지

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:20:9: warning: unused variable 'leni' [-Wunused-variable]
   20 |     int leni = (1 << 6);
      |         ^~~~

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:15:9: warning: unused variable 'leni' [-Wunused-variable]
   15 |     int leni = (1 << 6);
      |         ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...