結果

問題 No.538 N.G.S.
ユーザー beet
提出日時 2017-06-30 22:29:28
言語 C++11
(gcc 4.8.5)
結果
AC  
実行時間 4 ms
コード長 216 Byte
コンパイル時間 1,066 ms
使用メモリ 1,552 KB
最終ジャッジ日時 2019-11-16 16:23:28

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
00_sample_00.txt AC 3 ms
1,540 KB
00_sample_01.txt AC 3 ms
1,540 KB
00_sample_02.txt AC 3 ms
1,548 KB
00_sample_03.txt AC 3 ms
1,540 KB
01_hand_00.txt AC 4 ms
1,548 KB
01_hand_01.txt AC 3 ms
1,544 KB
01_hand_02.txt AC 4 ms
1,552 KB
01_hand_03.txt AC 3 ms
1,544 KB
01_hand_04.txt AC 2 ms
1,540 KB
01_hand_05.txt AC 3 ms
1,544 KB
01_hand_06.txt AC 3 ms
1,540 KB
01_hand_07.txt AC 3 ms
1,548 KB
02_random_00.txt AC 4 ms
1,548 KB
02_random_01.txt AC 3 ms
1,544 KB
02_random_02.txt AC 4 ms
1,548 KB
02_random_03.txt AC 3 ms
1,544 KB
02_random_04.txt AC 3 ms
1,548 KB
02_random_05.txt AC 4 ms
1,548 KB
02_random_06.txt AC 3 ms
1,548 KB
02_random_07.txt AC 3 ms
1,544 KB
03_tester_00.txt AC 3 ms
1,548 KB
03_tester_01.txt AC 3 ms
1,544 KB
03_tester_02.txt AC 3 ms
1,548 KB
03_tester_03.txt AC 2 ms
1,544 KB
03_tester_04.txt AC 3 ms
1,544 KB
03_tester_05.txt AC 3 ms
1,548 KB
03_tester_06.txt AC 4 ms
1,548 KB
03_tester_07.txt AC 3 ms
1,544 KB
03_tester_08.txt AC 3 ms
1,544 KB
03_tester_09.txt AC 3 ms
1,544 KB
03_tester_10.txt AC 3 ms
1,548 KB
03_tester_11.txt AC 3 ms
1,548 KB
03_tester_12.txt AC 3 ms
1,544 KB
03_tester_13.txt AC 3 ms
1,544 KB
03_tester_14.txt AC 3 ms
1,540 KB
03_tester_15.txt AC 3 ms
1,544 KB
03_tester_16.txt AC 3 ms
1,540 KB
03_tester_17.txt AC 4 ms
1,544 KB
03_tester_18.txt AC 3 ms
1,548 KB
03_tester_19.txt AC 3 ms
1,544 KB
03_tester_20.txt AC 3 ms
1,548 KB
03_tester_21.txt AC 3 ms
1,548 KB
03_tester_22.txt AC 3 ms
1,544 KB
03_tester_23.txt AC 3 ms
1,544 KB
03_tester_24.txt AC 3 ms
1,544 KB
03_tester_25.txt AC 3 ms
1,544 KB
99_challenge01.txt AC 3 ms
1,548 KB
99_challenge02.txt AC 3 ms
1,540 KB
99_system_test1.txt AC 3 ms
1,540 KB
99_system_test2.txt AC 3 ms
1,548 KB
99_system_test3.txt AC 3 ms
1,540 KB
99_system_test4.txt AC 3 ms
1,544 KB
99_system_test5.txt AC 3 ms
1,544 KB
99_system_test6.txt AC 3 ms
1,544 KB
99_system_test7.txt AC 3 ms
1,548 KB
テストケース一括ダウンロード

ソースコード

diff #
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  double b1,b2,b3;
  cin>>b1>>b2>>b3;
  double r=(b3-b2)/(b2-b1);
  double d=b3-r*b2;
  cout<<(int)round(r*b3+d)<<endl;
  return 0;
}
0