# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
479345 | rainboy | Titlovi (COCI19_titlovi) | C11 | 1 ms | 204 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
#include <string.h>
#define K 30
#define L 16384
#define T 86400000
int main() {
static char buf[L], txt[K][L];
static int xx[K], ll[K], rr[K];
int k, h, t;
k = 0;
while (1) {
int h1, m1, s1, ms1, h2, m2, s2, ms2;
char *ptr;
fgets(buf, L, stdin), sscanf(buf, "%d", &xx[k]);
fgets(buf, L, stdin), sscanf(buf, "%d:%d:%d,%d --> %d:%d:%d,%d",
&h1, &m1, &s1, &ms1,
&h2, &m2, &s2, &ms2);
ll[k] = ((h1 * 60 + m1) * 60 + s1) * 1000 + ms1;
rr[k] = ((h2 * 60 + m2) * 60 + s2) * 1000 + ms2;
ptr = txt[k++];
while (1) {
char c;
fgets(ptr, L, stdin);
c = ptr[0], ptr += strlen(ptr);
if (c == '\n')
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |