add some
This commit is contained in:
63
storage/aloha/cpp/2026-cherry-div1-A.cpp
Normal file
63
storage/aloha/cpp/2026-cherry-div1-A.cpp
Normal 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;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user