結果
問題 | No.745 letinopia raoha |
ユーザー |
![]() |
提出日時 | 2020-04-04 20:52:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 493 bytes |
コンパイル時間 | 1,388 ms |
コンパイル使用メモリ | 167,756 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-03 07:44:20 |
合計ジャッジ時間 | 1,955 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 {puts("Possible");ll ans = 0;ll cur = 1;for (int i = 1; i <= b; ++i) {ans += cur * 50;if (i % 100 == 0) {cur *= 2;}}for (int i = b + 1; i <= b + a; ++i) {ans += cur * 100;if (i % 100 == 0) cur *= 2;}cout << ans << '\n';}return 0;}