結果

問題 No.445 得点
ユーザー keisuke6
提出日時 2022-07-12 17:11:54
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 3,067 ms
コンパイル使用メモリ 244,200 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 15:03:43
合計ジャッジ時間 3,557 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
signed main(){
  int A,B;
  cin>>A>>B;
  int ans = 50*A;
  double a = 50.0*A;
  double b = 0.8+0.2*B;
  int c = 0;
  for(int i=0;i<=1000;i++)if(i*b <= a+0.00000001) c = i;
  cout<<ans+c<<endl;
}
0