結果

問題 No.538 N.G.S.
ユーザー evawenis
提出日時 2020-06-29 14:00:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 1,835 ms
コンパイル使用メモリ 192,868 KB
最終ジャッジ日時 2025-01-11 13:29:20
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 25 WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int b1,b2,b3; cin>>b1>>b2>>b3;
	int64_t r=(b3-b2)/(b2-b1),d=b2-r*b1;
	cout<<r*b3+d<<"\n"s;
}
0