Processing math: 100%

zawatins-library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub zawa-tin/zawatins-library

:heavy_check_mark: test/ABC125-C.test.cpp

Depends on

Code

#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/1/ITP1_1_A"

#include "../src/dataStructure/sparseTable.hpp"
#include "../src/utility/sparseTable/gcdStructure.hpp"

#include <vector>
#include <iostream>
#include <algorithm>
#include <numeric>

int main() {
	// int N; std::cin >> N;
	// std::vector A(N, 0);
	// for (auto& a : A) {
	// 	std::cin >> a;
	// }
	// zawa::sparseTable<zawa::gcdStructure<int>> S(A);
	// int ans = S.query(0, N);
	// ans = std::max(ans, S.query(1, N));
	// for (int i = 0 ; i < N - 1 ; i++) {
	// 	ans = std::max(ans, std::gcd(S.query(0, i), S.query(i + 1, N)));
	// }
	// ans = std::max(ans, S.query(0, N - 1));
	// std::cout << ans << std::endl;

	std::cout << "Hello World" << std::endl;
}

/*
 * AtCoder Beginner Contest 125 - C GCD on Blackboard
 * https://atcoder.jp/contests/abc125/submissions/39483132
 */
Back to top page