結果

問題 No.2779 Don't make Pair
コンテスト
ユーザー 👑 tails
提出日時 2024-06-07 22:21:15
言語 cLay
(20250308-1 + boost 1.92.0 + ACL)
コンパイル:
clayc _filename_
実行:
./a.out
結果
AC  
実行時間 48 ms / 2,000 ms
+ 593µs
コード長 108 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,923 ms
コンパイル使用メモリ 206,504 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2026-10-08 05:50:37
合計ジャッジ時間 4,938 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

map<ll,ll>m;ll@n,l=1,r=n-1;rep(i,n){ll@a;if(m[a])l>?=m[a],r<?=i;m[a]=i+1;}wt(l>r?0:r-l+1);wtSp(l..r);wt("");
0