- Выбираем турнир на https://t.me/khvip_calendar (время по Киеву).
- В посте с расписанием нажимаем на ссылку Регистрация на все онлайны (там же можно посмотреть более развернутые описания турниров), заполняем форму.
- Форма перекинет на Список чатов_ХВИП, находим нужный чат и входим в него. Днем список может быть пустым (в процессе создания…), это нормально. Чат тоже скорее всего будет пустым.
- В какой-то момент в чате появится пост со ссылками на оплату. Платим удобным образом и присылаем в чат
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e # exit if any command exits | |
set -u # unset variable is an error | |
set -o pipefail # fail if any command in pipe fails | |
# set -x # print all executed commands | |
# Check if pandoc is available | |
if ! command -v pandoc &> /dev/null | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def in_first_only(first, second): | |
second_unique = set(second) | |
return [x for x in first if x not in second_unique] | |
# Все элементы второго нужно сложить в хэш-таблицу, | |
# все элементы первого поискать в таблице. | |
# Приняв теоретически несовершенную, но полезную на практике | |
# оценку O(1) для операций над хэш-таблицей | |
# получим O(max(len(first), len(second))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.util.Arrays.equals; | |
public class ArrayEqualsExample { | |
public static void main(String[] args) { | |
Integer[] a = new Integer[]{1, 2, 3}; | |
Integer[] b = new Integer[]{1, 2, 3}; | |
System.out.println(equals(a, b)); |