結果
| 問題 | No.1110 好きな歌 |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-10-12 18:49:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 1,478 ms |
| コンパイル使用メモリ | 169,136 KB |
| 実行使用メモリ | 10,788 KB |
| 最終ジャッジ日時 | 2024-09-13 10:03:27 |
| 合計ジャッジ時間 | 9,204 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 TLE * 1 -- * 29 |
ソースコード
#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;
}
}
trineutron