This file contains 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
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 |
This file contains 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
#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; |