Solution for CCC '13 J1 - Next in line in Java 8


Nov. 4, 2019 1.431776 seconds Java 8
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int d = b - a;
        System.out.println(d + b);
        }

    }

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.