結果
問題 |
No.1213 sio
|
ユーザー |
![]() |
提出日時 | 2020-08-30 15:47:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 416 bytes |
コンパイル時間 | 2,159 ms |
コンパイル使用メモリ | 192,156 KB |
最終ジャッジ日時 | 2025-01-13 23:00:25 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 2000000000000000000 int main(){ long long N,M; cin>>N>>M; long long ans = 0LL; if(N%2==1){ ans += M/4; } if(M%2==1){ ans += N/4; } if(N*M%4==2){ if(N==6&&M>=3)ans = min(ans,1LL); if(M==6&&N>=3)ans = min(ans,1LL); } cout<<ans<<endl; return 0; }