ABC058A - ι⊥l
問題:A - ι⊥l
#include <iostream> using namespace std; int main(void) { int a, b, c; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> c; cout << (b - a == c - b? "YES" : "NO") << "\n"; return 0; }
Yes, Noと表示していて、1WA。。
問題:A - ι⊥l
#include <iostream> using namespace std; int main(void) { int a, b, c; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> c; cout << (b - a == c - b? "YES" : "NO") << "\n"; return 0; }
Yes, Noと表示していて、1WA。。