求助!!

B2144 阿克曼(Ackermann)函数

@[wzxujiacheng__](/user/1339210) 把快读删了试试
by sunpeilun @ 2024-11-01 13:27:01


```cpp #include <bits/stdc++.h> using namespace std; int a,b; int akm(int m,int n){ if(m==0)return n+1; if(n==0)return akm(m-1,1); return akm(m-1,akm(m,n-1)); } //int read(){ // int ret=0,f=1;char ch=getchar(); // while(!isdigit(ch)){if(ch=='-')f=-f;ch=getchar();} // while(isdigit(ch))ret=(ret>>1)+(ret>>3)+(ch&15),ch=getchar(); // return ret*f; //} int main(){ scanf("%d%d",&a,&b); printf("%d\n",akm(a,b)); return 0; } ``` 删快读
by wzxuhaiqi @ 2024-11-01 13:43:55


不太理解你快读里`(sum>>1)+(sum>>3)`是什么操作,搁着除10呢?
by sdjjdjdjdjd @ 2024-11-01 22:07:47


@[sunpeilun](/user/1119064) @[wzxuhaiqi](/user/1361181) @[sdjjdjdjdjd](/user/879804) 谢谢
by wzxujiacheng__ @ 2024-11-02 12:06:41


|