結果
問題 |
No.1110 好きな歌
|
ユーザー |
![]() |
提出日時 | 2020-05-04 20:54:02 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 490 bytes |
コンパイル時間 | 1,933 ms |
コンパイル使用メモリ | 164,908 KB |
実行使用メモリ | 9,216 KB |
最終ジャッジ日時 | 2024-11-30 18:03:58 |
合計ジャッジ時間 | 122,395 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 TLE * 13 |
ソースコード
#pragma GCC target ("avx") #pragma GCC optimization ("Ofast") #pragma GCC optimization ("unroll-loops") #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"; } }