結果
問題 |
No.318 学学学学学
|
ユーザー |
![]() |
提出日時 | 2017-01-07 23:01:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 166 bytes |
コンパイル時間 | 1,971 ms |
コンパイル使用メモリ | 174,292 KB |
実行使用メモリ | 12,800 KB |
最終ジャッジ日時 | 2024-10-01 21:16:21 |
合計ジャッジ時間 | 4,465 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(){for(std::map<int,int>e,s,A;std::cin>>a?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);} | ^~~~
ソースコード
#import<bits/stdc++.h> int N,i,j,a;main(){for(std::map<int,int>e,s,A;std::cin>>a?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);}