Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
87744 | 孙诗皓 | 我家的门牌号 | C++ | Wrong Answer | 4 MS | 272 KB | 284 | 2024-08-12 16:25:07 |
#include <iostream> #include <cmath> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n/6;i++) { for(int j=1;j<=n/6;j++) { if((1+j)*j/2-i*2==n) cout<<i<<" "<<j; } } return 0; }
------Input------
8923
------Answer-----
61 134
------Your output-----
61 134265 137334 138544 141615 142831 145904 1461126 1491201 1501429 153