Run ID:86188
提交时间:2024-07-23 15:28:47
#include<iostream> using namespace std; int main() { int a[101] = {0}; for (int j = 1; j <= 100; j++) { for (int i = 1; i <= 100; i++) { if (i % j == 0) { a[i]++; } } } cout << 1; for (int i = 2; i <= 100; i++) { if (a[i] % 2 == 1) { cout << "," << i; } } }