40分!求助!RE!
查看原帖
40分!求助!RE!
1010292
hello_666楼主2023/11/19 21:08

帮本小学生看看这个错哪了?

测试点4,5,7,8,9,10全部RE,不应该啊

40分代码:

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
    cin>>a>>b>>c;
    if(a%c==0&&b%c==0) cout<<(a/c)*(b/c);
    else cout<<"-1";
    return 0;
}
2023/11/19 21:08
加载中...