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
#!/usr/bin/env python3 | |
import re | |
import sys | |
prog = re.compile(r"\\N(?:{[^{}]*})?") | |
prog2 = re.compile(r"(Dialogue: \w*,\w*:\w*:\w*.\w*,\w*:\w*:\w*.\w*,\w*,\w*,\w*,\w*,\w*,\w*,)(.*)") | |
for line in sys.stdin: |
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> | |
int main () | |
{ | |
int a = 0, b = 1, c = 1, sum = 0; | |
while (c < 4000000) | |
{ | |
if (c % 2 == 0) | |
sum += c; |
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
def fib (m): | |
a, b, c = 0, 1, 1 | |
yield 1 | |
while a+b <= m: | |
c = a + b | |
yield c | |
a, b= b, c | |
s = 0 | |
for i in fib(4000000): |