結果
問題 | No.538 N.G.S. |
ユーザー |
![]() |
提出日時 | 2019-04-19 15:37:57 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 27,392 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 11:30:12 |
合計ジャッジ時間 | 1,855 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 51 |
ソースコード
// yukicoder: No.538 N.G.S.// 2019.4.19 bal4u#include <stdio.h>int main(){long long b1, b2, b3, ans;scanf("%lld%lld%lld", &b1, &b2, &b3);ans = b2 + (b3-b1)*(b3-b2)/(b2-b1);printf("%lld\n", ans);return 0;}