結果

問題 No.2453 Seat Allocation
ユーザー 👑 p-adicp-adic
提出日時 2023-08-20 11:57:33
言語 cLay
(20240104-1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 219 bytes
コンパイル時間 2,434 ms
コンパイル使用メモリ 172,676 KB
実行使用メモリ 12,852 KB
最終ジャッジ日時 2023-09-03 01:48:09
合計ジャッジ時間 7,127 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,384 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 79 ms
12,740 KB
testcase_06 AC 14 ms
5,380 KB
testcase_07 AC 35 ms
10,792 KB
testcase_08 AC 6 ms
4,424 KB
testcase_09 AC 99 ms
12,820 KB
testcase_10 AC 98 ms
12,852 KB
testcase_11 AC 99 ms
12,776 KB
testcase_12 AC 14 ms
5,252 KB
testcase_13 AC 19 ms
5,444 KB
testcase_14 AC 13 ms
5,360 KB
testcase_15 AC 30 ms
5,560 KB
testcase_16 AC 24 ms
5,108 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 AC 52 ms
8,528 KB
testcase_19 AC 74 ms
10,904 KB
testcase_20 AC 28 ms
6,928 KB
testcase_21 AC 28 ms
6,160 KB
testcase_22 AC 42 ms
6,988 KB
testcase_23 AC 2 ms
4,384 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@M,@A[N],t,j;double@B[M];set<tuple<double,ll,ll>>C;
cerr<<N<<","<<M<<endl;
rep(i,N)C.insert({-A[i]/B[0],i,0});rep(M){const auto&c=*C.begin();wt(1+(t=get<1>(c)));j=get<2>(c)+1;C.erase(c);C.insert({-A[t]/B[j],t,j});}
0