Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93182 | 王郡翊 | 找路径 | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 237 | 2024-10-12 17:04:02 |
#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; }