結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-20 19:54:27 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 493 bytes |
| コンパイル時間 | 781 ms |
| コンパイル使用メモリ | 68,496 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-19 02:43:41 |
| 合計ジャッジ時間 | 1,365 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char* argv[])
{
int A,B,C,D;
int count=0;
int aV=100;
int bV=50;
int dV=-100;
cin>>A>>B>>C>>D;
if (D*100>=1000){
cout<<"Impossible"<<endl;
return 0;
}
int Sum=0;
int n2;
int i;
for (i=1;i<=B;i++){
n2=pow(2.0,(double)(count/100));
Sum+=bV*n2;
count++;
}
for (i=1;i<=A;i++){
n2=pow(2.0,(double)(count/100));
Sum+=aV*n2;
count++;
}
cout<<"Possible"<<endl;
cout<<Sum<<endl;
return 0;
}