Submission #1131442

#TimeUsernameProblemLanguageResultExecution timeMemory
1131442jackofall718Solar Storm (NOI20_solarstorm)C++20
0 / 100
111 ms13804 KiB
#include <bits/stdc++.h> #define ll long long int #define endl '\n' #define vn vector <ll> using namespace std; const int MAX_N = 1e9 + 7; #define pii pair <ll,ll> const ll INF = 0x3f3f3f3f3f3f3f3f; #define pb push_back #define srt(vp) sort(vp.begin(), vp.end()) int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n,s,k;//no module,shield,radius cin>>n>>s>>k; vn a(n); for (auto &x:a)cin>>x; vn b(n+1); for (auto &x:b)cin>>x; ll max1=-1; ll ans; for (int i=0;i<n;i++){ if (b[i]>max1){ max1=b[i]; ans=i+1; } } cout<<1<<endl; cout<<ans<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...