Submission #1144689

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11446892025-02-03 14:48:48otesunkiSaveit (IOI10_saveit)C++20
25 / 100
122 ms9768 KiB
#include <bits/stdc++.h>
#include "grader.h"
#include "encoder.h"
static unsigned fib[46] = {
1U, 2U, 3U, 5U,
8U, 13U, 21U, 34U,
55U, 89U, 144U, 233U,
377U, 610U, 987U, 1597U,
2584U, 4181U, 6765U, 10946U,
17711U, 28657U, 46368U, 75025U,
121393U, 196418U, 317811U, 514229U,
832040U, 1346269U, 2178309U, 3524578U,
5702887U, 9227465U, 14930352U, 24157817U,
39088169U, 63245986U, 102334155U, 165580141U,
267914296U, 433494437U, 701408733U, 1134903170U,
1836311903U, 2971215073U
};
void encode_fib(unsigned x) {
char unsigned fibc[46] = { 0 };
++x;
int i = 45;
while (x < fib[i]) {
--i;
}
int j = i;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...