結果

問題 No.2453 Seat Allocation
ユーザー 👑 p-adicp-adic
提出日時 2023-08-19 21:26:38
言語 cLay
(20240104-1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 195 bytes
コンパイル時間 2,309 ms
コンパイル使用メモリ 171,988 KB
実行使用メモリ 12,940 KB
最終ジャッジ日時 2023-09-03 01:48:22
合計ジャッジ時間 4,698 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 78 ms
12,772 KB
testcase_06 AC 14 ms
5,328 KB
testcase_07 AC 35 ms
10,812 KB
testcase_08 AC 6 ms
4,380 KB
testcase_09 AC 108 ms
12,940 KB
testcase_10 AC 106 ms
12,776 KB
testcase_11 AC 106 ms
12,760 KB
testcase_12 AC 14 ms
5,300 KB
testcase_13 AC 19 ms
5,412 KB
testcase_14 AC 13 ms
5,288 KB
testcase_15 AC 30 ms
5,612 KB
testcase_16 AC 25 ms
5,100 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 AC 55 ms
8,524 KB
testcase_19 AC 81 ms
10,852 KB
testcase_20 AC 28 ms
7,044 KB
testcase_21 AC 27 ms
6,108 KB
testcase_22 AC 42 ms
7,072 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@M,@A[N],t,j;double@B[M];set<tuple<double,ll,ll>>C;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