Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
33477 chenyanda 同余方程(Day 2) C++ Compile Error 0 MS 0 KB 159 2023-12-09 16:08:54

Tests(0/0):


#include<iostream> using namespace std; int main() { double a,b; cin>>a>>b; for(int i=0;i<b;i++){ if(a*i%b==1){ cout<<i; break; } } }


Judgement Protocol: