結果
問題 | No.538 N.G.S. |
ユーザー |
![]() |
提出日時 | 2017-06-30 23:10:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,125 bytes |
コンパイル時間 | 1,506 ms |
コンパイル使用メモリ | 166,580 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 23:55:40 |
合計ジャッジ時間 | 2,896 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 51 |
ソースコード
#include<bits/stdc++.h>#define rep(i,a,b) for(int i=a;i<b;i++)#pragma GCC optimize ("-O3")using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }//---------------------------------------------------------------------------------------------------/*---------------------------------------------------------------------------------------------------∧_∧∧_∧ (´<_` ) Welcome to My Coding Space!( ´_ゝ`) / ⌒i/ \ | |/ / ̄ ̄ ̄ ̄/ |__(__ニつ/ _/ .| .|____\/____/ (u ⊃---------------------------------------------------------------------------------------------------*/typedef long long ll;ll B1, B2, B3;//---------------------------------------------------------------------------------------------------void _main() {cin >> B1 >> B2 >> B3;ll B4 = (B3 * B3 - B2 * B3 + B2 * B2 - B1 * B3) / (B2 - B1);cout << B4 << endl;}