This document contains JavaScript code to read input from stdin, split it into lines, and define a main function. The main function parses the first input line as the number of test cases, then loops through each case where it parses the next input line as N, calculates a sum based on multiples of 3 and 5 up to N, and prints the sum.
This document contains JavaScript code to read input from stdin, split it into lines, and define a main function. The main function parses the first input line as the number of test cases, then loops through each case where it parses the next input line as N, calculates a sum based on multiples of 3 and 5 up to N, and prints the sum.
This document contains JavaScript code to read input from stdin, split it into lines, and define a main function. The main function parses the first input line as the number of test cases, then loops through each case where it parses the next input line as N, calculates a sum based on multiples of 3 and 5 up to N, and prints the sum.