結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2020-08-26 18:38:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 482 bytes |
| コンパイル時間 | 1,024 ms |
| コンパイル使用メモリ | 72,572 KB |
| 最終ジャッジ日時 | 2025-01-13 15:02:00 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 6 WA * 2 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int A, B, C, D;
cin >> A >> B >> C >> D;
if (D == 10){
cout << "Inpossible" << endl;
} else {
vector<int> s;
for (int i = 0; i < B; i++){
s.push_back(50);
}
for (int i = 0; i < A; i++){
s.push_back(100);
}
int m = 1;
int ans = 0;
for (int i = 0; i < A + B; i++){
ans += s[i] * m;
if (i % 100 == 99){
m *= 2;
}
}
cout << "Possible" << endl;
cout << ans<< endl;
}
}
SSRS