Any questions do not hesitate to contact.
#include <bits/stdc++.h> using namespace std; int main() { int cases; scanf("%d",&cases); while(cases--){ int n,f,t; scanf("%d %d %d",&n,&f,&t); printf("%d\n",(t%(n+1))*f); } return 0; }
Keep in touch with Isaac Lozano Osorio!