結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
alorie10
|
| 提出日時 | 2018-10-19 23:04:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 1,323 ms |
| コンパイル使用メモリ | 158,616 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-18 22:18:09 |
| 合計ジャッジ時間 | 1,915 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
int a,b,c,d;
cin>>a>>b>>c>>d;
if(d>=10){cout<<"Impossible"<<endl;return 0;}
else cout<<"Possible"<<endl;
int cnt=0;
int ans=0;
for(int i=0;i<b;i++){
ans+=50*pow(2,cnt/100);
cnt++;
}
for(int i=0;i<a;i++){
ans+=100*pow(2,cnt/100);
cnt++;
}
cout<<ans<<endl;
}
alorie10