C++ Implementation of Problem 836

View source code here on GitHub!

Includes

Solution

std::string p0836()
int main(int argc, char const *argv[])

Note

This function is only present in the Python test runner, or when compiling as a standalone program.

 1/*
 2Project Euler Problem 836
 3
 4Alright, this was funny
 5
 6Problem:
 7
 8Let A be an **affine plane** over a **radically integral local field** F with residual characteristic p.
 9
10We consider an **open oriented line section** U of A with normalized Haar measure m.
11
12Define f(m,p) as the maximal possible discriminant of the **jacobian** associated to the
13**orthogonal kernel embedding** of U into A.
14
15Find f(20230401, 57). Give as your answer the concatenation of the first letters of each bolded word.
16*/
17#ifndef EULER_P0836
18#define EULER_P0836
19#include <iostream>
20#include "include/macros.hpp"
21
22std::string EMSCRIPTEN_KEEPALIVE p0836() {
23    return "aprilfoolsjoke";
24}
25
26PROGRAM_TAIL(p0836)
27#endif

Tags: word-problem