結果
| 問題 | No.853 河原の石 |
| コンテスト | |
| ユーザー |
leaf_1415
|
| 提出日時 | 2019-07-26 23:11:53 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 473 ms |
| コンパイル使用メモリ | 88,688 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-23 16:49:14 |
| 合計ジャッジ時間 | 1,981 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 54 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <unordered_map>
#define llint long long
#define mod 1000000007
using namespace std;
llint h, w;
int main(void)
{
ios::sync_with_stdio(0);
cin.tie(0);
cin >> h >> w;
w = abs(w);
llint ans = w;
if(h > 1){
ans += (h-1)*((w+1)/2);
}
cout << ans << endl;
return 0;
}
leaf_1415