Skip to content

Instantly share code, notes, and snippets.

View sapphi-red's full-sized avatar
:octocat:
🤔

sapphi-red

:octocat:
🤔
View GitHub Profile
@sapphi-red
sapphi-red / Solve.java
Created April 17, 2019 10:53
StudentNumber CPCTF2019
import java.util.*;
public class Solve {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 0; i < n; i++){
char[] y = sc.next().toCharArray();
char[] x = sc.next().toCharArray();
int sum = 0;
sum += Character.getNumericValue(y[0]) * 2;