Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5932 | D班-罗炜翰 | 猜年龄 | C++ | Wrong Answer | 0 | 0 MS | 260 KB | 373 | 2025-02-16 16:44:07 |
#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; } } } } }