結果
問題 |
No.1511 A ? B Problem
|
ユーザー |
![]() |
提出日時 | 2024-05-25 10:38:08 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 3,285 ms |
コンパイル使用メモリ | 244,424 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-20 19:35:04 |
合計ジャッジ時間 | 3,957 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 4 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int d, a, b; cin >> d >> a >> b; int x = 0; if (a-b < 0) { x = d; } else { x = 0; } cout << (a-b)*x+b*d << endl; return 0; }