結果

問題 No.318 学学学学学
ユーザー hogeover30
提出日時 2017-01-07 17:10:02
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 1,717 ms
コンパイル使用メモリ 176,508 KB
実行使用メモリ 17,408 KB
最終ジャッジ日時 2024-12-17 16:21:04
合計ジャッジ時間 6,678 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
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<<" ";}
      |                ^~~~

ソースコード

diff #

#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<<" ";}
0