結果

問題 No.1057 素敵な日
ユーザー miraissanmiraissan
提出日時 2023-12-06 11:36:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 1,765 ms
コンパイル使用メモリ 165,072 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-27 01:11:51
合計ジャッジ時間 2,355 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	int A,B;
	int AS;
	cin >> A >> B;
	if (A%2==0){
		AS = A / 2;
	  cout << AS*B << endl;	
	}else{
		AS = A % 2;
		cout << AS+B << endl;
	}
}
0