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
| use anyhow::{Context, Result, anyhow}; | |
| use goblin::pe::PE; | |
| use i256::u256; | |
| use iced_x86::{Decoder, DecoderOptions, Instruction, Mnemonic, OpKind, Register}; | |
| use num_bigint::BigInt; | |
| use num_traits::{One, Signed, Zero}; | |
| use std::collections::HashMap; | |
| use std::fs::{self, File}; | |
| use std::io::{BufReader, Write}; |
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
| filename = "./dataset/b_better_start_small.in.txt" | |
| contribs = {} | |
| projects = {} | |
| def parse_contribs(file, contrib_num): | |
| for _ in range(contrib_num): | |
| contrib_raw = file.readline().strip() | |
| skills_num = contrib_raw.split(' ')[-1] | |
| contrib = contrib_raw[:len(contrib_raw)-len(skills_num)-1] |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define MAXCHAR 20 | |
| struct Pile { | |
| char text[MAXCHAR]; | |
| int sp; | |
| }; |