This commit is contained in:
2026-06-26 18:42:29 +09:00
parent bc1489d320
commit 5a14bd0d2d
5 changed files with 309 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
#include <iostream>
#include <algorithm>
#include <vector>
#define let auto
#define fn auto
#define usize size_t
using namespace std;
const usize MOD = 1'000'000'007;
fn fastio() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
}
/**
*
* If there is energy x phage
* f(1, x) = f(2, x + 1) + f(2, x - 1)
* 0 0 0 1 0 0 0 0 0
* 0 0 1 0 1 2
* 0 1 0 2 0 0 0 0
* 1 0 3 0 3 0 0 0 8
* 0 4 0
* 4 0 10 0 10
* 0 14 0 20
* 14 0 34 35 119
* 48 68
*/
/**
* 1
* 1 1
* 1 2 1
* 1 3 3 1
* 1 4 6 4 1
* 1 5 10 10 5 1
* 1 6 15 20 15 6 1
* 1 7 21 35 35
*
* 48
*
*
*
* 1 4 10+4 14+14+20 14+20+
*/
// 10 4일 때
// 1 2 4 8 15 30
// 0 1 2 3 4 5 6 7 8 9
fn main() -> int {
fastio();
usize k, n;
usize col1 = 0;
usize col2 = 0;
cin >> k >> n;
}