結果
| 問題 | 
                            No.84 悪の算盤
                             | 
                    
| コンテスト | |
| ユーザー | 
                             focus
                         | 
                    
| 提出日時 | 2018-06-18 01:55:33 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 225 bytes | 
| コンパイル時間 | 529 ms | 
| コンパイル使用メモリ | 68,220 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-30 16:43:37 | 
| 合計ジャッジ時間 | 1,223 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 WA * 5 | 
ソースコード
#include<iostream>
#include<cmath>
using namespace std;
int main() {
	long long int x,y,Y;
	cin >> y >> x;
	Y = (y+1.9)/2;
	if(y%2==1){
		 cout << x*Y-long (x+1.9)/2 << endl;
	}
	else{
		cout << x*Y-1 << endl;
	}
	return 0;
}
            
            
            
        
            
focus