Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101695 | 李雨昊 | 找路径 | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 229 | 2024-12-15 19:25:43 |
#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; }