mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
257 B
C++
14 lines
257 B
C++
|
#include<iostream>
|
||
|
#include<cstdio>
|
||
|
using namespace std;
|
||
|
int main(){
|
||
|
int t,r;
|
||
|
long long n,m,k;
|
||
|
scanf("%d",&t);
|
||
|
while(t--){
|
||
|
scanf("%d%lld%lld",&r,&k,&m);
|
||
|
printf("%d %lld\n",r,1+(k-m)*m);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|