結果

問題 No.2407 Bouns 2.0
コンテスト
ユーザー forest3
提出日時 2023-09-27 01:36:54
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 205 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,018 ms
コンパイル使用メモリ 179,556 KB
実行使用メモリ 187,528 KB
最終ジャッジ日時 2026-04-02 17:58:48
合計ジャッジ時間 2,480 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;

int main() {
	int w, z;
	string bs;
	cin >> w >> z >> bs;
	int b = (bs[0] - '0') * 10 + bs[2] - '0' + 10;
	int ans = (w + z) * b / 10;
	cout << ans << endl;
}
0