結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-08-18 15:59:01 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 804 ms |
| コンパイル使用メモリ | 66,820 KB |
| 最終ジャッジ日時 | 2025-01-30 23:51:04 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 WA * 29 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int a[3];
for(int i = 0; 3 > i; i++)cin>>a[i];
pair<int,int> r = {a[2]-a[1],a[1]-a[0]};
pair<int,int> d = {a[1]*(a[1]-a[0])-(a[0]*(a[2]-a[1])),a[1]-a[0]};
cout << ((a[2]*r.first+d.first)/r.second) << endl;
}