結果

問題 No.318 学学学学学
ユーザー hogeover30
提出日時 2017-01-07 17:50:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 175 bytes
コンパイル時間 1,705 ms
コンパイル使用メモリ 176,500 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-10-01 21:15:57
合計ジャッジ時間 4,449 ms
ジャッジサーバーID
(参考情報)
judge5 / 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]]=a;e[a]<++j&&s.erase(a))std::cout<<rbegin(s)->first<<" ";}
      |             ^~~~

ソースコード

diff #

#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]]=a;e[a]<++j&&s.erase(a))std::cout<<rbegin(s)->first<<" ";}
0