結果
問題 | No.745 letinopia raoha |
ユーザー |
|
提出日時 | 2020-04-10 11:14:15 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 574 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 66,560 KB |
最終ジャッジ日時 | 2025-01-09 15:39:08 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <iostream> void solve() { int a, b, c, d; std::cin >> a >> b >> c >> d; if (d >= 10) { std::cout << "Impossible" << std::endl; return; } std::cout << "Possible" << std::endl; int score = 0, combo = 0; while (b--) { score += 50 * (1 << (combo / 100)); ++combo; } while (a--) { score += 100 * (1 << (combo / 100)); ++combo; } std::cout << score << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }