From 679022c4cd0eaa5e7d94219b55fa5788631c7224 Mon Sep 17 00:00:00 2001 From: Philippe Zwietering Date: Mon, 2 May 2022 16:16:38 +0200 Subject: [PATCH] PE 79, didn't need to write code for this one, just looked at the text file for a few minutes --- projecteuler/079/keylog.txt | 50 +++++++++++++++++++++++++++++++++++++ projecteuler/079/main.cpp | 16 ++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 projecteuler/079/keylog.txt create mode 100644 projecteuler/079/main.cpp diff --git a/projecteuler/079/keylog.txt b/projecteuler/079/keylog.txt new file mode 100644 index 0000000..09b7aca --- /dev/null +++ b/projecteuler/079/keylog.txt @@ -0,0 +1,50 @@ +319 +680 +180 +690 +129 +620 +762 +689 +762 +318 +368 +710 +720 +710 +629 +168 +160 +689 +716 +731 +736 +729 +316 +729 +729 +710 +769 +290 +719 +680 +318 +389 +162 +289 +162 +718 +729 +319 +790 +680 +890 +362 +319 +760 +316 +729 +380 +319 +728 +716 \ No newline at end of file diff --git a/projecteuler/079/main.cpp b/projecteuler/079/main.cpp new file mode 100644 index 0000000..bdf0af0 --- /dev/null +++ b/projecteuler/079/main.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + +int main(){ + + cout << "Hello this is Patrick" << endl; + auto start = chrono::high_resolution_clock::now(); + + // Insert code here + // Solved this one by just looking at the text file for 5 minutes, seeing which numbers come before others + + auto duration = chrono::duration_cast(chrono::high_resolution_clock::now() - start); + cout << (float)duration.count()/1000 << endl; + return 0; +}