結果
問題 | No.745 letinopia raoha |
ユーザー |
![]() |
提出日時 | 2018-10-19 23:38:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 1,533 ms |
コンパイル使用メモリ | 165,800 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-18 22:47:45 |
合計ジャッジ時間 | 2,050 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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) { cout << "Impossible" << endl; return 0; } cout << "Possible" << endl; int score = 0; for (int i = 0; i < a + b; i++) { if (i < b) { score += (50 << (i / 100)); } else { score += (100 << (i / 100)); } } cout << score << endl; return 0; }