結果
| 問題 | No.318 学学学学学 |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2017-01-07 17:10:02 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 184 bytes |
| 記録 | |
| コンパイル時間 | 1,066 ms |
| コンパイル使用メモリ | 189,940 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2026-05-26 20:12:27 |
| 合計ジャッジ時間 | 5,293 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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<<" ";}
| ^~~~
ソースコード
#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