蒟蒻70pts求调
查看原帖
蒟蒻70pts求调
981728
DaoXiang007楼主2023/9/2 08:05

#include<bits/stdc++.h>

using namespace std;

int main(){

long long a,b,c;

cin>>a>>b>>c;

if((a*b)%(c*c)==0)

cout<<(a*b)/(c*c)<<endl;

else cout<<"-1"<<endl;

return 0;

}

2023/9/2 08:05
加载中...