結果
問題 | No.745 letinopia raoha |
ユーザー |
![]() |
提出日時 | 2018-10-19 21:31:22 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 415 bytes |
コンパイル時間 | 1,460 ms |
コンパイル使用メモリ | 158,168 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 20:03:30 |
合計ジャッジ時間 | 1,638 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main() {int a, b, c, d;cin >> a >> b >> c >> d;if (d == 10) {puts("Impossible");return 0;}puts("Possible");int cnt = 0, ans = 0;while (b > 0) {cnt++;b--;ans += 50 * pow(2, ((cnt - 1) / 100));}while (a > 0) {cnt++;a--;ans += 100 * pow(2, ((cnt - 1) / 100));}cout << ans << endl;return 0;}