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

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

Is it right to quit a contest after seeing the problemset and feeling that you can not solve them?

Or is it necessary for the platforms to introduce some kind of system such that only the contestants who are participating can view the problems?

Recently Atcoder has implemented Rated/Unrated participation.

I don't know what the reason may be, but I feel those who are participating unrated can do that with virtual participation also. It is like playing friendly matches in the middle of a World Cup.

What do you think?

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

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

Автор pedastrian57, история, 5 лет назад, По-английски

Today I am trying to find something similar to #ifndef ONLINE_JUDGE in python . I find a post on stackoverflow .This has worked for me . You can insert the below code in your program to do conditional compilation ....

import sys
zz=not __debug__
if not zz:
	input=sys.stdin.readline
else:	
	sys.stdin=open('input.txt', 'r')
	sys.stdout=open('output.txt','w')

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

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