Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
33318 chenyanda 同余方程(Day 2) C++ Time Limit Exceeded 1000 MS 240 KB 162 2023-12-08 17:29:41

Tests(0/10):


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


Judgement Protocol: