Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97950 | 梁敖铭 | 找路径 | C++ | Time Limit Exceeded | 1000 MS | 264 KB | 229 | 2024-11-16 21:55:06 |
#include<iostream> using namespace std; int kat(int x,int y) { if(x == 1||y == 1) { return 1; } return kat(x-1,y)+kat(x,y-1); } int main() { int a,b; cin >> a >> b; cout << kat(a,b); return 0; }