結果
| 問題 |
No.84 悪の算盤
|
| コンテスト | |
| ユーザー |
Ysmr_Ry
|
| 提出日時 | 2014-12-12 09:08:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 198 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 33,504 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-11 20:55:43 |
| 合計ジャッジ時間 | 796 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf( "%lld%lld", &R, &C );
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<cstdio>
#include<algorithm>
typedef long long ll;
int main()
{
ll R, C;
scanf( "%lld%lld", &R, &C );
printf( "%lld\n", std::max( 0ll, (R*C>>1)-!(R*C&1) ) );
return 0;
}
Ysmr_Ry