#include<cstdio> #include<iostream> using namespace std; int a,b,c; int d[1000001]; int res = 0; int main() { /* freopen("TEST.INP","r",stdin); freopen("TEST.OUT","w",stdout); */ for(int i=1;i<1000001;i++) for(int j=i;j<1000001;j+=i) d[j]++; cin >> a >> b >> c; for(int i=1;i<=a;i++) for(int j=1;j<=b;j++) for(int k=1;k<=c;k++) res += d[i*j*k]; cout << res << endl; }
Không có nhận xét nào:
Đăng nhận xét