Submission #2699798


Source Code Expand

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        System.out.println((b - a) == (c - b) ? "YES" : "NO");
    }
}

Submission Info

Submission Time
Task A - ι⊥l
User shosinsha
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 311 Byte
Status AC
Exec Time 96 ms
Memory 21972 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, A.txt, fever0.txt, fever7.txt, kure.txt, ma.txt, max.txt, nhk.txt, v.txt, xam.txt
Case Name Status Exec Time Memory
0_000.txt AC 94 ms 20052 KB
0_001.txt AC 96 ms 20820 KB
0_002.txt AC 96 ms 20692 KB
A.txt AC 94 ms 21204 KB
fever0.txt AC 93 ms 21972 KB
fever7.txt AC 96 ms 19668 KB
kure.txt AC 94 ms 18644 KB
ma.txt AC 94 ms 21844 KB
max.txt AC 95 ms 21332 KB
nhk.txt AC 95 ms 21332 KB
v.txt AC 93 ms 21844 KB
xam.txt AC 93 ms 18636 KB