結果
| 問題 | No.3471 ジャッジサーバーの負荷分散 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-03-06 22:14:51 |
| 言語 | cLay (20250308-1 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 175 ms / 2,000 ms |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 2,876 ms |
| コンパイル使用メモリ | 195,772 KB |
| 実行使用メモリ | 18,688 KB |
| 最終ジャッジ日時 | 2026-03-06 22:14:57 |
| 合計ジャッジ時間 | 2,730 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:123:10: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
123 | auto&[c,j]=*p;
| ^
main.cpp:127:12: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
127 | for(auto&[c,j]:S){
| ^
ソースコード
ll@N,@M,@A[N],a=0;set<pair<ll,ll>>S;rep(m,M)S.insert({0,m});rep(i,N){auto p=S.begin();auto&[c,j]=*p;S.insert({c+A[i],j});S.erase(p);}for(auto&[c,j]:S)a>?=c;wt(a);