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
let fizzbuzz = [ | |
"\rfizzbuzz", | |
"", | |
"", | |
"\rfizz", | |
"", | |
"\rbuzz", | |
"\rfizz", | |
"", | |
"", |
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
// must use gcc ¯\_(ツ)_/¯ | |
#include <bits/stdc++.h> | |
using namespace std; | |
int closestSquare(int num) { | |
double root = sqrt((double)num); | |
double lowerBoundRoot = (int)(root); | |
double upperBoundRoot = (int)(root + 0.5); |
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 std::io::{stdin, stdout, Write}; | |
use regex::Regex; | |
use colored::*; | |
//[dependencies] | |
//regex = "1" | |
//colored = "1.9" | |
fn main() { | |
let re = Regex::new(r#"(?x)(?P<num>(-?)([0-9]+)(\.)?([0-9]+)?)(?P<ft>(?P<frm>C|K|F)(?P<to>C|K|F))"#) |