結果
問題 | No.318 学学学学学 |
ユーザー |
![]() |
提出日時 | 2017-01-07 17:12:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 173 ms / 2,000 ms |
コード長 | 184 bytes |
コンパイル時間 | 1,644 ms |
コンパイル使用メモリ | 175,628 KB |
実行使用メモリ | 12,928 KB |
最終ジャッジ日時 | 2024-06-22 18:08:38 |
合計ジャッジ時間 | 5,539 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<bits/stdc++.h> | ^~~~~~ main.cpp:2:16: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | int N,i=-2,j,a;main(){std::map<int,int>e,s,A;for(;++i<N;~i?e[A[i]=a]=i:N=a)std::cin>>a;for(;s[a=A[j]]=j<N;e[a]<++j&&s.erase(a))std::cout<<rbegin(s)->first<<" ";} | ^~~~
ソースコード
#import<bits/stdc++.h>int N,i=-2,j,a;main(){std::map<int,int>e,s,A;for(;++i<N;~i?e[A[i]=a]=i:N=a)std::cin>>a;for(;s[a=A[j]]=j<N;e[a]<++j&&s.erase(a))std::cout<<rbegin(s)->first<<" ";}