Codeforces Round #389 (Div. 2, Rated, Based on Technocup 2017 – Elimination Round 3), problem: (D) Santa Claus and a Palindrome Solution in C/C++

By |2017-04-07T22:11:44+00:00January 7th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , , |

Codeforces Round #389 (Div. 2, Rated, Based on Technocup 2017 - Elimination Round 3), problem: (D) Santa Claus and a Palindrome Solution in C/C++   #include<stdio.h> #include<stdlib.h> typedef unsigned u; int cmp(const void*x,const void*y){return*(int*)x-*(int*)y;} typedef struct S{int*val;u id,vali,vala;struct S*nx[26];}v; v*alloc() { v*x;u i; x=(v*)malloc(sizeof(v)); [...]