# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
916576 |
2024-01-26T06:17:26 Z |
Wansur |
Parrots (IOI11_parrots) |
C++14 |
|
1 ms |
1316 KB |
#include <bits/stdc++.h>
#define f first
#define s second
#define ent '\n';
using namespace std;
typedef long long ll;
const int mx=2e5+12;
void output(int b);
void send(int a);
void encode(int n, int a[]){
for(int i=0;i<n;i++){
send(a[i]+i*256);
}
}
#include <bits/stdc++.h>
#define f first
#define s second
#define ent '\n';
using namespace std;
typedef long long ll;
const int mx=2e5+12;
void output(int b);
void send(int a);
void decode(int m, int n, int a[]){
sort(a,a+n);
for(int i=0;i<n;i++){
output(a[i]%256);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
784 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
1292 KB |
Output is correct |
2 |
Correct |
1 ms |
1300 KB |
Output is correct |
3 |
Correct |
1 ms |
1308 KB |
Output is correct |
4 |
Correct |
1 ms |
1316 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
792 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
784 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
796 KB |
Error : Bad encoded integer |
2 |
Incorrect |
0 ms |
796 KB |
Error : Bad encoded integer |
3 |
Incorrect |
1 ms |
796 KB |
Error : Bad encoded integer |
4 |
Incorrect |
0 ms |
784 KB |
Error : Bad encoded integer |
5 |
Incorrect |
0 ms |
796 KB |
Error : Bad encoded integer |
6 |
Incorrect |
1 ms |
784 KB |
Error : Bad encoded integer |
7 |
Incorrect |
1 ms |
784 KB |
Error : Bad encoded integer |