結果
| 問題 | 
                            No.745 letinopia raoha
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-08-01 02:23:58 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 666 bytes | 
| コンパイル時間 | 1,909 ms | 
| コンパイル使用メモリ | 192,568 KB | 
| 最終ジャッジ日時 | 2025-01-07 10:25:19 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 2 WA * 6 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    if (d>=10) puts("Impossible");
    else {
        int score = 0;
        int mul = 1;
        while (b >= 100) {
            score += 50*100*mul;
            b -= 100;
            mul *= 2;
        }
        score += 50*b*mul;
        if (100-b <= a) {
            score += 100*(100-b)*mul;
            a -= 100-b;
            mul *= 2;
        }
        while (a >= 100) {
            score += 100*100*mul;
            a -= 100;
            mul *= 2;
        }
        score += 100*a*mul;
        cout << score << endl;
    }
    return 0;
}