Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135067 徐英杰 拆分分数 C++ Time Limit Exceeded 1000 MS 272 KB 744 2025-11-02 14:03:21

Tests(0/20):


Code:

#include <iostream> using namespace std; int jc(int n) { //递归出口 if (n == 0 || n == 1) { return 1; } //n的阶乘=n*(n-1的阶乘) return n * jc(n-1); } int gcd(int a,int b) { if (a%b == 0) { return b; } return gcd(b,a%b); } long long x_n(int x,int n) { if ( n == 0) { return 1; } if (x == 0) { return 0; } if (n == 1) { return x; } return x * x_n(x,n-1); } void OJ1490(int k) { int x = 1; int y = 1; while (true) { if (k*(x+y) == x*y) { cout<<"YES"; break; } } } int main() { int k; cin>>k; OJ1490(k); return 0; }