結果

問題 No.2890 Chiffon
ユーザー karinohitokarinohito
提出日時 2024-09-13 22:49:07
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 523 bytes
コンパイル時間 2,124 ms
コンパイル使用メモリ 204,468 KB
実行使用メモリ 11,208 KB
最終ジャッジ日時 2024-09-13 22:49:15
合計ジャッジ時間 7,353 ms
ジャッジサーバーID
(参考情報)
judge6 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,944 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 3 ms
6,944 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 2 ms
6,940 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 2 ms
6,940 KB
testcase_18 WA -
testcase_19 AC 2 ms
6,944 KB
testcase_20 AC 2 ms
6,940 KB
testcase_21 AC 2 ms
6,940 KB
testcase_22 RE -
testcase_23 AC 15 ms
6,944 KB
testcase_24 AC 8 ms
6,940 KB
testcase_25 AC 3 ms
6,940 KB
testcase_26 WA -
testcase_27 AC 2 ms
6,940 KB
testcase_28 AC 13 ms
6,940 KB
testcase_29 AC 4 ms
6,944 KB
testcase_30 WA -
testcase_31 AC 46 ms
6,940 KB
testcase_32 AC 62 ms
6,944 KB
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 RE -
testcase_50 RE -
testcase_51 RE -
testcase_52 RE -
testcase_53 AC 12 ms
6,940 KB
testcase_54 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

#include<atcoder/modint>
using namespace atcoder;
using mint =modint998244353;

int main() {

    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    ll N,K;
    cin>>N>>K;
    vector<ll> A(K*2);
    for(int i=0;i<K;i++){
        cin>>A[i];
        A[i+K]=A[i]+2*N;
    }
    ll d=(2*N)/K;
    assert(K<1e4);
    for(int i=0;i<2*K;i++){
        for(int j=0;j+1<i;j++){
            d=min(d,(A[i]-A[j]-2)/(i-j-1));
        }
    }
    cout<<d<<endl;
}
0