Solution to the problem number 615 of AceptaelReto - 615.

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;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!