| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136852 | 李朋秦 | 我家的门牌号 | C++ | Accepted | 1 MS | 276 KB | 441 | 2025-11-15 15:24:17 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int m=1; while(true) { int sum=m*(m+1)/2; if(sum<=n){ m++; continue; } if((sum-n)%2==0) { int x=(sum-n) / 2; if(x<=m){ cout<<x<<" "<<m<< endl; break; } } m++; } return 0; }