Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151450 吴天辰 我家的门牌号 C++ Accepted 34 MS 276 KB 229 2026-04-12 14:22:13

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i=0,x,sum=0; while(1){ i++; sum+=i; for(x=1;x<100000;x++){ if(sum-x*2==n){ cout<<x<<" "<<i; return 0; } } } return 0; }