結果

問題 No.853 河原の石
ユーザー a
提出日時 2019-07-26 21:27:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 1,295 ms
コンパイル使用メモリ 165,428 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-02 06:37:15
合計ジャッジ時間 3,137 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 1 WA * 54 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

void solve(void)
{
	long h, w;
	cin >> h >> w;
	cout << (w + h - 1) / w * 2 * h << endl;
}

int main()
{
	solve();
	//cout << "yui(*-v・)yui" << endl;
	return 0;
}

0