結果

問題 No.1052 電子機器X
ユーザー abc3
提出日時 2020-05-20 06:42:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 216 bytes
コンパイル時間 1,472 ms
コンパイル使用メモリ 166,648 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-01 23:25:50
合計ジャッジ時間 1,925 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
const int INF=999999999;
char a[10][10];
int main() {
    int N,K;
    cin>>N>>K;
    if(N%2==0){cout<<min(N/2,K+1)<<endl;}
    else{cout<<min(N,K+1)<<endl;}

 return 0;}
0