import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static long longestSequence(long[] a, int N) { // Return the length of the longest possible sequence of moves. long total=0; for(int i=0;i=k*c) { if(T%(k*c)==0) return k*c; c++; } return -100000; } }