Submission #1080628

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10806282024-08-29 11:43:17thelegendary08City (JOI17_city)C++14
Compilation error
0 ms0 KiB
#include "Device.h"
#define ll long long
void InitDevice()
{
}
int Answer(long long S, long long T)
{
ll szs, cs, szt, ct;
//cout<<S<<' '<<T<<'\n';
if(S >= 250000ll * 125000ll){
S -= 250000ll * 125000ll;
szs = S % 250000ll;
cs = S / 250000ll;
}
else{
szs = S % 125000ll;
cs = S / 125000ll;
}
if(T >= 250000ll * 125000ll){
T -= 250000ll * 125000ll;
szt = T % 250000ll;
ct = T / 250000ll;
}
else{
szt = T % 125000ll;
ct = T/ 125000ll;
}
//cout<<cs<<' '<<ct<<' '<<szs<<' '<<szt<<'\n';
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

/usr/bin/ld: /tmp/ccydUnvg.o: in function `main':
grader_encoder.cpp:(.text.startup+0xd1): undefined reference to `Encode(int, int*, int*)'
collect2: error: ld returned 1 exit status