Skip to content

Instantly share code, notes, and snippets.

View youqad's full-sized avatar

Younesse Kaddar youqad

View GitHub Profile
@youqad
youqad / retina_variance_1.txt
Last active June 7, 2018 06:05
Inferring Space from Sensorimotor dependencies: varying retina variance (seed=1)
var = 0.1 / dim of compensated mov. = -1 (9 2 12)
var = 0.2 / dim of compensated mov. = 3 (9 5 11)
var = 0.3 / dim of compensated mov. = 3 (9 5 11)
var = 0.4 / dim of compensated mov. = -1 (9 5 15)
var = 0.5 / dim of compensated mov. = 3 (9 5 11)
var = 0.6 / dim of compensated mov. = 3 (9 5 11)
var = 0.7 / dim of compensated mov. = 0 (9 2 11)
var = 0.8 / dim of compensated mov. = 3 (9 5 11)
var = 0.9 / dim of compensated mov. = -1 (9 5 15)
var = 1.0 / dim of compensated mov. = 4 (10 5 11)
/*************************************************************
*
* MathJax/extensions/TeX/xypic.js
*
* Implements Xy-pic environment.
*
* ---------------------------------------------------------------------
*
* Copyright (c) 2011-2014 Isao Sonobe <sonoisa@gmail.com>.
*
@youqad
youqad / concours-meilleur-dev.py
Created April 4, 2017 16:34
Concours Meilleur Dev : problème final
import sys
from collections import deque
lines = []
for line in sys.stdin:
lines.append(line.rstrip('\n'))
N = int(lines[0])
G = [set() for _ in range(N)]
20
20
3
5
2 3
2 4
2 4
9 3
7 6
5 4 3
20
20
1 1 1 2
1 5 3 2
1 5 1 2
1 5 1 2
1 5 2
1 4 2
1 5 2
1 7 2
20
20
3 3 7
2 4 7
1 5 8
8 6 1
8 3 3
3 3 2 2 3
2 2 3 2 1 4
3 1 3 3 5
20
20
1 4 5 2 3
1 3 3 1 2 3
3 2 2 3 2 1
1 2 2 1 2 2 2
1 2 3 2 2
1 2 3 2 2
4 1 2 1
1 2 1 5
20
20
3 5 3
1 1 1 1
2 1 2 2
1 2 1 1
1 3 1 1 2 1
1 3 2 1
1 4 3 3
1 1 3 3 1 2
20
20
10 5
9 2 4
7 4 4
5 5
4 9
3 9
3 1 8
2 1 8
25
25
3
5
5
2 6
2 6
3 6
4 6
4 2 2