| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 8144 | D班-西瓜 | 友好数 | C++ | Accepted | 100 | 1 MS | 268 KB | 309 | 2025-03-26 14:15:32 |
#include <bits/stdc++.h> using namespace std; int ys(int n) { int sum = 0; for(int i = 1; i<n; i++) { if(n%i==0) { sum += i; } } return sum; } int main() { int x,y; cin >> x >> y; if(x == ys(y) && y == ys(x)) { cout << "yes"; } else { cout << "no"; } return 0; }