Code Chef:: FLOW002
#include <iostream>
using namespace std ;
int main(){
int T ;
int A ;
int B ;
cin >> T ;
int remainder[T] ;
for (int i = 0; i < T; ++i) {
cin >> A ;
cin >> B ;
remainder[i] = A%B ;
}
for (int i = 0; i < T; ++i) {
cout << remainder[i] << '\n' ;
}
return 0 ;
}
Comments
Post a Comment