結果
| 問題 | No.1110 好きな歌 |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-10-22 11:56:04 |
| 言語 | C++17(clang) (clang++ 23.1.3 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 4,807 ms / 5,000 ms |
| + 626µs | |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 1,311 ms |
| コンパイル使用メモリ | 166,092 KB |
| 実行使用メモリ | 9,920 KB |
| 最終ジャッジ日時 | 2026-10-02 16:48:48 |
| 合計ジャッジ時間 | 94,692 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 51 |
ソースコード
#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 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