結果
| 問題 | No.318 学学学学学 |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2017-01-07 17:12:35 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 197 ms / 2,000 ms |
| コード長 | 184 bytes |
| 記録 | |
| コンパイル時間 | 1,454 ms |
| コンパイル使用メモリ | 192,688 KB |
| 実行使用メモリ | 12,928 KB |
| 最終ジャッジ日時 | 2026-03-06 23:29:57 |
| 合計ジャッジ時間 | 4,599 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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<<" ";}
hogeover30