Skip to content

Instantly share code, notes, and snippets.

function atget
set -l contest_id $argv[1]
set -l problem $argv[2]
while test -z $contest_id
read -P "contest_id: " contest_id
end
cd $atcoder_cpp_dir
#include <stdio.h>
#define MAX_SIZE 100000
int main() {
char str[MAX_SIZE], last_c, c;
int lines_len = 0;
int line_indice[MAX_SIZE];
for (int i = 0; i < MAX_SIZE; ++i) line_indice[i] = -1;