传到 第 i 个人的方式为 i-1 --> i 和 i+1 -->i,当然i是第一个人的时候和最后一个人的时候分开讨论,不开 ll 等着 wr
ans:
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define endl '\n'
typedef unsigned long long ull;
const int N=2e5+10;
const ll ma=1e9+7;
#define INF 0x3f3f3f3f;
ll read() {
ll x, f = 1;
char ch;
while(ch = getchar(), ch < '0' || ch > '9') if(ch == '-') f = -1;
x = ch - '0';
while(ch = getchar(), ch >= '0' && ch <= '9') x = x * 10 + ch - 48;
return x * f;
}
ll arr[110][110];
inline void solve()
{
}
int main() {
}