Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116810 夏梓瑞 我家的门牌号 C++ Accepted 7 MS 272 KB 520 2025-04-12 15:44:23

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min()\fabs() #include<ctime> #include<cstdlib> #include<cstring> using namespace std; int main(){ int a,b=0,c=0; cin>>a; while(1){ b++; c+=b; for(int i=0;i<=c;i++){ if(c-2*i==a){ cout<<i<<' '<<b; return 0; } } } return 0; }