結果
| 問題 |
No.1110 好きな歌
|
| コンテスト | |
| ユーザー |
root__786
|
| 提出日時 | 2020-07-10 23:01:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 629 bytes |
| コンパイル時間 | 1,984 ms |
| コンパイル使用メモリ | 198,044 KB |
| 最終ジャッジ日時 | 2025-01-11 19:09:24 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 TLE * 26 |
ソースコード
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
#define ll int
bool find(vector<int> b){
for(int i=0;i<b.size();i++){
b[i]=b[i]%12;
}
sort(b.begin(),b.end());
vector<int> aa={0,2,4,5,7,9,11};
for(int i=0;i<b.size();i++){
for(int j=0;j<aa.size();j++)
if(b[i]==aa[j]) return true;
}
return false;
}
int main() {
ll n,d;
cin>>n>>d;
ll a[n];
for(ll i=0;i<n;i++) cin>>a[i];
ll cx=0;
for(ll i=0;i<n;i++){
for(ll j=0;j<n;j++){
if(i!=j && a[i]-a[j]>=d) cx++;
}
cout<<cx<<endl;
cx=0;
}
}
root__786