Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
128793 Microsoft 不定方程的解 C++ Wrong Answer 0 0 MS 248 KB 223 2024-01-26 09:48:27

Tests(0/4):


#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,n; cin>>a>>b>>c; n=0; for(int x=0;x<=c;x++){ for(int y=0;y<=c;y++){ if(a*x+b*y==c){ n++; cout<<c; } } } return 0; }


Judgement Protocol: