結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
tamato
|
| 提出日時 | 2020-04-13 20:30:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 319 bytes |
| コンパイル時間 | 1,600 ms |
| コンパイル使用メモリ | 165,272 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 08:18:53 |
| 合計ジャッジ時間 | 3,079 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 51 |
ソースコード
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll a, b, c; cin >> a >> b >> c;
cout << (a*c + b*c - b*b - c*c) / (a - b) << endl;
}
tamato