結果

問題 No.1110 好きな歌
ユーザー trineutron
提出日時 2020-05-04 20:51:10
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 451 bytes
コンパイル時間 13,834 ms
コンパイル使用メモリ 258,052 KB
最終ジャッジ日時 2025-01-10 06:34:26
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 TLE * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, d;
    cin >> n >> d;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a.at(i);
    for (int i = 0; i < n; i++) {
        int ans = 0;
        for (int j = 0; j < n; j++) {
            if (a.at(i) - a.at(j) >= d) ans++;
        }
        cout << ans << endl;
    }
}
0