提交时间:2025-02-16 16:44:07
运行 ID: 5932
#include<bits/stdc++.h> using namespace std; int main() { int a,b; for (int i = 1;i <= 50;i++) { for (int j = 1;j <= 50;j++) { if (i<j) { if (i * j == (i + j) * 6 && j - i < 8) { cout<<i; } } else if (j<i) { if (i * j == (i + j) * 6 && i - j < 8) { cout<<j; } } } } }