結果
問題 |
No.318 学学学学学
|
ユーザー |
![]() |
提出日時 | 2017-01-07 17:23:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 177 bytes |
コンパイル時間 | 1,692 ms |
コンパイル使用メモリ | 176,324 KB |
実行使用メモリ | 12,928 KB |
最終ジャッジ日時 | 2024-10-01 21:15:51 |
合計ジャッジ時間 | 6,501 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 26 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<bits/stdc++.h> | ^~~~~~ main.cpp:2:13: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | int N,i,j,a;main(){std::map<int,int>e,s,A;for(;std::cin>>a;N?e[A[i]=a]=i++:N=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,j,a;main(){std::map<int,int>e,s,A;for(;std::cin>>a;N?e[A[i]=a]=i++:N=a);for(;s[a=A[j]]=j<N;e[a]<++j&&s.erase(a))std::cout<<rbegin(s)->first<<" ";}