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
// Ivan Carvalho | |
// Problem A - Educational Dynamic Programming Contest - AtCoder | |
// Link : https://atcoder.jp/contests/dp | |
#include <bits/stdc++.h> | |
using namespace std; | |
const int MAXN = 1e5 + 10; | |
const int INF = 2*1e9; | |
int dp[MAXN],N,K,h[MAXN]; |
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
template <int maxn> struct FFT { | |
constexpr static int lg2(int n) { return 32 - __builtin_clz(n - 1); } | |
const static int MAXN = 1 << lg2(maxn); | |
typedef complex<double> cpx; | |
int rev[MAXN]; | |
cpx rt[MAXN]; | |
FFT() { | |
rt[1] = cpx{1, 0}; | |
for (int k = 2; k < MAXN; k *= 2) { | |
cpx z[] = {1, polar(1.0, M_PI / k)}; |
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
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
//Angular Material Components | |
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; | |
import {MatCheckboxModule} from '@angular/material'; | |
import {MatButtonModule} from '@angular/material'; |