結果

問題 No.905 Sorted?
ユーザー ooaiu
提出日時 2025-09-12 12:48:48
言語 cLay
(20241019-1)
結果
CE  
実行時間 -
コード長 160 bytes
コンパイル時間 2,179 ms
コンパイル使用メモリ 174,388 KB
最終ジャッジ日時 2025-09-12 12:48:53
合計ジャッジ時間 3,144 ms
ジャッジサーバーID
(参考情報)
judge4 / judge
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:103:7: error: missing template arguments before ‘I’
  103 |   set I{N};
      |       ^
main.cpp:104:7: error: missing template arguments before ‘D’
  104 |   set D{N};
      |       ^
main.cpp:109:7: error: ‘I’ was not declared in this scope
  109 |       I.insert(i);
      |       ^
main.cpp:112:7: error: ‘D’ was not declared in this scope
  112 |       D.insert(i);
      |       ^
main.cpp:125:8: error: ‘D’ was not declared in this scope
  125 |     s=*D.lower_bound(l)>=r;
      |        ^
main.cpp:126:8: error: ‘I’ was not declared in this scope
  126 |     t=*I.lower_bound(l)>=r;
      |        ^

ソースコード

diff #

ll@N,@A;set I{N},D{N};rep(i,N-1){ll@B;if(A<B)I.insert(i);if(A>B)D.insert(i);A=B;}ll@Q;rep(Q){ll@l,@r,s,t;s=*D.lower_bound(l)>=r,t=*I.lower_bound(l)>=r;wt(s,t);}
0