Language: Rust
Source code:
use std::io; fn main() { let mut input = String::new(); io::stdin().read_line(&mut input).expect("Error while reading"); let checked = input.trim(); if checked.len() == 0 { println!("???"); return; } let check:Vec = vec![215, 233, 200, 218, 374, 167, 164, 158, 167, 311, 308, 296, 158, 164, 155, 167, 170, 173, 173, 167, 161, 158, 155, 152, 158, 164, 311, 311, 308, 380]; let mut counter = 0; let len = check.len(); for i in checked.as_bytes() { if counter >= len || ((*i as u32) * 3 + 5) != check[counter] { println!("Nope"); return; } counter+=1; } println!("Well done!"); }
When you run it, it waits for a string. Flag is the string for which "Well done!" is printed.
Compiled Linux binary: main_rustCompiled Windows binary: main_rust.exe