結果
問題 | No.745 letinopia raoha |
ユーザー |
![]() |
提出日時 | 2024-09-24 00:12:42 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 544 bytes |
コンパイル時間 | 9,689 ms |
コンパイル使用メモリ | 244,196 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 00:16:28 |
合計ジャッジ時間 | 14,219 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (d < 10) { cout << "Possible" << endl; int ans = 0; rep(i, b) ans += 50 * (1 << (i / 100)); rep(i, a) ans += 100 * (1 << ((b + i) / 100)); cout << ans << endl; } else { cout << "Impossible" << endl; } return 0; }