就差这一题就能AK了…… 想不通有什么错呢(AC#1~#6+#8#11#12,其他全WA)
#include<bits/stdc++.h> using namespace std; long long a,b,c; int main() { cin>>a>>b>>c; if(a%c==0&&b%c==0) cout<<a/c*b/c; else cout<<-1; return 0; }