Submission #22597361
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a+3);
if(a[1] - a[0] == a[2] - a[1]){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Tiny Arithmetic Sequence |
| User | eikani |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 289 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 3596 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 8 ms | 3572 KiB |
| 001.txt | AC | 2 ms | 3448 KiB |
| 002.txt | AC | 1 ms | 3544 KiB |
| 003.txt | AC | 2 ms | 3440 KiB |
| 004.txt | AC | 3 ms | 3528 KiB |
| 005.txt | AC | 2 ms | 3456 KiB |
| 006.txt | AC | 2 ms | 3396 KiB |
| example0.txt | AC | 2 ms | 3556 KiB |
| example1.txt | AC | 2 ms | 3596 KiB |
| example2.txt | AC | 2 ms | 3552 KiB |