4 solutions
- 1
Information
- ID
- 278
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 175
- Accepted
- 57
- Uploaded By
//同余
#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b,c,ans=0;
while(scanf("%lld%lld%lld",&a,&b,&c)!=EOF){
ans=((a%c)*(b%c))%c;
cout<<ans<<endl;
}
return 0;
}
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.