結果
問題 | No.589 Counting Even |
ユーザー |
![]() |
提出日時 | 2018-06-09 20:38:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 1,292 ms |
コンパイル使用メモリ | 158,700 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 13:00:55 |
合計ジャッジ時間 | 2,360 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) i64 N; int main(){ cin >> N; if(N == 0 && N == 1){ cout << 0 << endl; return 0; } cout << N - 1 - (N & 1 ? 2 : 0) << endl; }