首页 > TAG信息列表 > P1851
P1851 好朋友 (AC)
注意: 1.a != b 2.1也是因数 #include <stdio.h> int main() { int n, a, b, s = 1, j = 1; scanf("%d", &n); a = n - 1; while (s != a) { a++; j = 1; s = 1; for (int i = 2; i < a; i++) {P1851 好朋友 (AC)
注意: 1.a != b 2.1也是因数 #include <stdio.h> int main() { int n, a, b, s = 1, j = 1; scanf("%d", &n); a = n - 1; while (s != a) { a++; j = 1; s = 1; for (int i = 2; i < a; i++) {