View t10e16.stringdiff.cpp
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
// t10e16.stringdiff.cpp | |
// juanfc 2022-01-14 | |
// https://gist.github.com/c9714ca8843727fa6bf179ae6923ca1a | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
string diff(string a, string b); |
View t10e26.longNatural.cpp
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
// t10e26.longNatural.cpp | |
// juanfc 2022-01-17 | |
// Juan Falgueras, 1997-11-25 al 2003-12-05 | |
// | |
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
void test(string s1, string s2); |
View t12e13.queens.cpp
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
// t12e13.queens.cpp | |
// juanfc 2022-01-19 | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
const int N = 8; | |
const int NQUEENS = 8; |
View t12e14.coxeter.cpp
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
// t12e14.coxeter.cpp | |
// juanfc 2022-01-22 | |
// juanfc 26/1/02, 2006-12-14, 2019-01-10 | |
// | |
// | |
// magicsquareSTL.cpp | |
// https://gist.github.com/9273b8a29955e043d26596b440e9b756 | |
// \ej\label{magicsq}\dificil\dificil\textbf{Magic Squares}\\ | |
// A \href{https://en.wikipedia.org/wiki/Magic_square}{magic square} is a |
View t12e15.knightTourCheck.cpp
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
// t12e15.knightTourCheck.cpp | |
// juanfc 2021-12-19 | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
const int N = 8; | |
typedef array<array<int,N>,N> TChessboard; |
View t11e07.polynomials.cpp
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
// t11e07.polynomials.cpp | |
// juanfc 2018-12-17 | |
// https://gist.github.com/baf068a06eafb1ecba8a584fe375b780 | |
#include <array> | |
#include <iostream> | |
using namespace std; | |
const int N = 100; | |
struct TMono { |
View t11e06.OpenArray.cpp
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
// t11e06.OpenArray.cpp | |
// juanfc 2022-01-16 | |
// | |
#include <array> | |
#include <iostream> | |
using namespace std; | |
const int N = 100; | |
typedef array<int, N> TVector; |
View t11e05.TStudent.cpp
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
// t11e05.TStudent.cpp | |
// juanfc 2022-01-16 | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; |
View t11e04.TPatient.cpp
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
// t11e04.TPatient.cpp | |
// juanfc 2022-01-16 | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
const int NBLOPRE = 24*31; |
View t11e03.complexnumbers.cpp
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
// t11e03.complexnumbers.cpp | |
// juanfc 2022-01-16 | |
// | |
#include <iostream> | |
using namespace std; | |
struct TComp { | |
float re, im; | |
}; |
NewerOlder