結果
| 問題 | No.84 悪の算盤 |
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-06-18 01:55:33 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 483 ms |
| コンパイル使用メモリ | 81,088 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-20 22:12:46 |
| 合計ジャッジ時間 | 1,137 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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