結果
| 問題 | No.1110 好きな歌 |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-10-22 12:33:03 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 1,548 ms |
| コンパイル使用メモリ | 174,508 KB |
| 実行使用メモリ | 9,600 KB |
| 最終ジャッジ日時 | 2026-05-24 06:34:54 |
| 合計ジャッジ時間 | 21,067 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 1 TLE * 4 -- * 46 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, d;
cin >> n >> d;
int a[200000];
for (int i = 0; i < n; i++) cin >> a[i];
for (int x : a) {
int ans = 0;
for (int y : a) {
if (x - y >= d) ans++;
}
cout << ans << "\n";
}
}
trineutron