結果
問題 | No.2803 Bocching Star |
ユーザー |
👑 |
提出日時 | 2024-07-13 11:49:36 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 107 ms / 2,000 ms |
コード長 | 166 bytes |
コンパイル時間 | 2,734 ms |
コンパイル使用メモリ | 187,832 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-07-13 11:49:45 |
合計ジャッジ時間 | 7,469 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 35 |
コンパイルメッセージ
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));