結果
| 問題 |
No.84 悪の算盤
|
| コンテスト | |
| ユーザー |
latte0119
|
| 提出日時 | 2015-05-02 14:21:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 197 bytes |
| コンパイル時間 | 1,213 ms |
| コンパイル使用メモリ | 157,524 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 17:27:54 |
| 合計ジャッジ時間 | 1,751 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 4 WA * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
cin>>a>>b;
if(a!=b)cout<<((a+1)/2)*((b+1)/2)-1<<endl;
else{
cout<<((a+1)/2)*a/2-1+a%2<<endl;
}
}
latte0119