結果
| 問題 |
No.965 門松列が嫌い
|
| コンテスト | |
| ユーザー |
daruma_jp
|
| 提出日時 | 2020-04-09 17:42:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 65,976 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 14:42:33 |
| 合計ジャッジ時間 | 1,198 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 9 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a > b > c) || (a < b < c)) cout << "0" << endl;
else cout << abs(a - c) << endl;
return 0;
}
daruma_jp