Блог пользователя PoustouFlan

Автор PoustouFlan, история, 2 года назад, По-английски

Hello, codeforces!

As I am currently learning C in my computer science classes, I was thinking about trying to solve fundamental 800-1000 problems in C in codeforces.

But... I have no idea why this is happening :

#include <stdio.h>

int main()
{
    size_t n;
    scanf("%zu", &n);
    printf("%zu", n);
}

As a custom invocation, if you give 1 as input, it gives you 2 as output. It gave me random values in other contexts. It seems to behave fine when I use "%ld" instead of "%zu".

Any idea why this happens?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +21
  • Проголосовать: не нравится

Автор PoustouFlan, история, 2 года назад, По-английски

Hi,

I am trying to use Polygon to make a small esoteric programming contest with some friends, and I wanted to know if I could use Polygon for that. In particular, I cannot find any way to forbid any language that is not esoteric or only to authorize one specific language.

Did I miss the option somewhere, or is it elsewhere, or maybe is Polygon not the most adapted tool to use in the first place?

Edit : I recently realized Polygon was not at all in charge of managing this, but codeforces. There is an option in mashups to allow specific groups of languages, but esoteric languages are not present.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится