結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
mirenai1997
|
| 提出日時 | 2017-07-09 19:40:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 196 bytes |
| コンパイル時間 | 417 ms |
| コンパイル使用メモリ | 55,200 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-25 00:16:58 |
| 合計ジャッジ時間 | 1,729 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 51 |
ソースコード
#include<iostream>
using namespace std;
int main() {
long long int a, b, c,ans;
std::cin >> a;
std::cin >> b;
std::cin >> c;
ans = (c*(c-a)+b*(b-c))/(b-a);
std::cout << noshowpoint<<ans;
}
mirenai1997