結果
| 問題 | No.1110 好きな歌 |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-10-22 11:36:14 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 1,409 ms |
| コンパイル使用メモリ | 179,656 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 04:37:42 |
| 合計ジャッジ時間 | 16,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 RE * 4 TLE * 2 -- * 23 |
ソースコード
#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[100000];
for (int i = 0; i < n; i++) cin >> a[i];
for (int i = 0; i < n; i++) {
int ans = 0;
for (int j = 0; j < n; j++) {
if (a[i] - a[j] >= d) ans++;
}
cout << ans << "\n";
}
}
trineutron