結果
問題 |
No.2803 Bocching Star
|
ユーザー |
👑 |
提出日時 | 2024-07-13 11:48:31 |
言語 | cLay (20241019-1) |
結果 |
RE
|
実行時間 | - |
コード長 | 164 bytes |
コンパイル時間 | 5,587 ms |
コンパイル使用メモリ | 186,508 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-07-13 11:48:47 |
合計ジャッジ時間 | 12,877 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 7 RE * 28 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:113:14: warning: narrowing conversion of ‘P[i]’ from ‘long long int’ to ‘int’ [-Wnarrowing] 113 | Q[i]={P[i],i+1}; | ~~~^ main.cpp:113:14: warning: narrowing conversion of ‘P[i]’ from ‘long long int’ to ‘int’ [-Wnarrowing]
ソースコード
ll@N,@S,@P[N],L=0;VI Q[N];rep(i,N)Q[i]={P[i],i+1};sort(Q,Q+N);rep[Q,i](r,N)if((!i|Q[i-1][0]+S<r[0])&(i>N-2|r[0]<Q[i+1][0]-S))P[L++]=r[1];sort(P,P+L);wt(L);wt(P(L));