Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151452 黄睿杰 我家的门牌号 C++ Time Limit Exceeded 1000 MS 260 KB 261 2026-04-12 14:23:02

Tests(0/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<=100000000;x++){ if(s-2*x==n){ cout<<x<<" "<<i; return 0; } } } return 0; }