| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72757 | 杨莹斌 | 我家的门牌号 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 237 | 2024-05-12 17:42:33 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int y = 1; int x = 1; while(1){ for(x = 1;x <= y;x++){ if((1+y)*y/2-2*x==n){ cout<<x<<" "<<y; } } y++; } return 0; }