Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151453 黄睿杰 我家的门牌号 C++ Accepted 4 MS 272 KB 257 2026-04-12 14:23:22

Tests(10/10):


Code:

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