| 6 | |
| 7 | |
| 8 | int main() |
| 9 | |
| 10 | { |
| 11 | |
| 12 | int t; |
| 13 | cin>>t; |
| 14 | int x,y,n,k; |
| 15 | for(int i=0;i<t;i++){ |
| 16 | cin>>x>>y>>n; |
| 17 | if((n-n%x+y)<=n){ |
| 18 | cout<<n-n%x+y<<endl; |
| 19 | } |
| 20 | else{ |
| 21 | cout<<n-n%x+y-x<<endl; |
| 22 | } |
| 23 | } |
| 24 | return 0; |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected