結果
| 問題 | No.538 N.G.S. |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-18 15:59:01 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| 記録 | |
| コンパイル時間 | 464 ms |
| コンパイル使用メモリ | 79,360 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-27 02:16:30 |
| 合計ジャッジ時間 | 2,541 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}