| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151444 | Kevin | 我家的门牌号 | C++ | Accepted | 36 MS | 272 KB | 245 | 2026-04-12 13:52:40 |
#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; }