41 lines
846 B
C++
41 lines
846 B
C++
/*
|
|
* Project Euler Solutions - Main Translation Unit
|
|
* ------------------------------------------
|
|
* Problem : Largest Palindrome Product
|
|
* URL : https://projecteuler.net/problem=4
|
|
*
|
|
* Author : erick-alcachofa
|
|
* Created : Monday, August 04 2025
|
|
*
|
|
* Notes:
|
|
* -
|
|
*
|
|
* License : GNU Affero General Public License v3.0 (AGPLv3)
|
|
* https://www.gnu.org/licenses/agpl-3.0.html
|
|
*/
|
|
|
|
#include <iostream>
|
|
#include <print>
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
#include "timer.hpp"
|
|
#include "impl.hpp"
|
|
|
|
int main(int, char *[]) {
|
|
std::ios_base::sync_with_stdio(false),
|
|
std::cin.tie(nullptr),
|
|
std::cout.tie(nullptr);
|
|
|
|
std::string input = R"(@input@)";
|
|
|
|
decltype(Solve({})) ans = {};
|
|
|
|
{
|
|
Timer<Microseconds> timer;
|
|
ans = Solve(std::stringstream{input});
|
|
}
|
|
|
|
std::println("{}", ans);
|
|
}
|