結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-01 02:25:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 692 bytes |
| コンパイル時間 | 2,080 ms |
| コンパイル使用メモリ | 192,248 KB |
| 最終ジャッジ日時 | 2025-01-07 10:25:28 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#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;
puts("Possible");
cout << score << endl;
}
return 0;
}