提出 #22669054


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

int main(){
    int A[3];
    cin >> A[0] >> A[1] >> A[2];
    sort(A, A+3);
    cout << (A[0]+A[2] == 2*A[1] ? "Yes" : "No") << endl;
    return 0;
}

提出情報

提出日時
問題 A - Tiny Arithmetic Sequence
ユーザ betrue12
言語 C++ (GCC 9.2.1)
得点 100
コード長 208 Byte
結果 AC
実行時間 8 ms
メモリ 3616 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 10
セット名 テストケース
Sample example0.txt, example1.txt, example2.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt
ケース名 結果 実行時間 メモリ
000.txt AC 8 ms 3572 KiB
001.txt AC 2 ms 3604 KiB
002.txt AC 6 ms 3552 KiB
003.txt AC 2 ms 3520 KiB
004.txt AC 2 ms 3572 KiB
005.txt AC 3 ms 3448 KiB
006.txt AC 2 ms 3516 KiB
example0.txt AC 2 ms 3552 KiB
example1.txt AC 3 ms 3524 KiB
example2.txt AC 2 ms 3616 KiB