Skip to content

Instantly share code, notes, and snippets.

@johirbuet
Created February 23, 2018 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johirbuet/353439ba7e4dad56799d62b3629ebddd to your computer and use it in GitHub Desktop.
Save johirbuet/353439ba7e4dad56799d62b3629ebddd to your computer and use it in GitHub Desktop.
import java.util.Scanner;
public class UVA12992 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for(int t = 1; t <= T; t++) {
int N = sc.nextInt();
int r = (N - 1) * 2 + + 1 ;
System.out.println("Case #"+t+": "+r);
}
sc.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment