Run ID:86193

提交时间:2024-07-23 15:36:29

#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]++; } } } for(int i=1;i<=100;i++){ if(a[i] % 2 == 1){ cout<<i<<" "; } } }