/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 15ms 640.0 KiB
#3 Accepted 275ms 912.0 KiB
#4 Accepted 277ms 928.0 KiB
#5 Time Exceeded ≥1088ms ≥1.332 MiB
#6 Time Exceeded ≥1097ms ≥1.328 MiB

Code

#include<bits/stdc++.h>
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define ll long long
#define endl '\n'
using namespace std;
int main()
{
    optimize();
    ll n;
    cin>>n;
    vector<ll>v(n);
    for(auto &u:v)
    {
        cin>>u;
    }
    ll t;
    cin>>t;
    while(t--)
    {
        ll m;
        cin>>m;
        ll s=min_element(v.begin(),v.end())-v.begin();
        v[s]=m;
        cout<<s+1<<endl;
    }


}

Information

Submit By
Type
Submission
Problem
P1086 KuZ the Position
Contest
Bangladesh 2.0
Language
C++20 (G++ 13.2.0)
Submit At
2024-08-16 17:11:30
Judged At
2024-11-11 03:12:22
Judged By
Score
60
Total Time
≥1097ms
Peak Memory
≥1.332 MiB