Help me in solving CCHOCOLATES problem

My issue

why i am getting runtime exception having NoSuchElementException

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner obj = new Scanner(System.in);
		int t = obj.nextInt();
		for(int i = 0; i<=t; i++){
		    int ten = obj.nextInt();
		    int five = obj.nextInt();
		    int z = obj.nextInt();
		    int sum = (ten*10)+(five*5);
		    sum = sum/z;
		    System.out.println(Math.floor(sum));
		}

	}
}

Learning course: Basic Math using Java
Problem Link: Chef and Chocolates Practice Problem in - CodeChef

@pantheraleo870
plzz refer following c++ solution :-

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	
	while(t--){
	    int x,y,z;
	    cin>>x>>y>>z;
	    int noc=0;
	    int sum;
	    sum=5*x+10*y;
	    if(sum>=z){
	       noc=sum/z;
	    }
	    cout<< noc<<endl;
	}
	return 0;
}