結果

問題 No.318 学学学学学
ユーザー syarosyaro
提出日時 2016-02-22 18:31:39
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 2,499 ms
コンパイル使用メモリ 152,320 KB
実行使用メモリ 12,936 KB
最終ジャッジ日時 2023-09-04 18:31:43
合計ジャッジ時間 7,091 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
4,380 KB
testcase_01 AC 25 ms
5,000 KB
testcase_02 AC 30 ms
5,316 KB
testcase_03 AC 20 ms
4,624 KB
testcase_04 AC 27 ms
5,080 KB
testcase_05 AC 205 ms
12,716 KB
testcase_06 AC 200 ms
11,612 KB
testcase_07 AC 177 ms
10,744 KB
testcase_08 AC 155 ms
9,840 KB
testcase_09 AC 137 ms
8,980 KB
testcase_10 AC 114 ms
8,296 KB
testcase_11 AC 202 ms
12,744 KB
testcase_12 AC 146 ms
10,588 KB
testcase_13 AC 134 ms
9,756 KB
testcase_14 AC 107 ms
9,040 KB
testcase_15 AC 93 ms
8,504 KB
testcase_16 AC 78 ms
8,164 KB
testcase_17 AC 128 ms
12,784 KB
testcase_18 AC 105 ms
10,516 KB
testcase_19 AC 127 ms
12,936 KB
testcase_20 AC 63 ms
8,272 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 1 ms
4,380 KB
testcase_25 AC 1 ms
4,380 KB
testcase_26 AC 2 ms
4,384 KB
testcase_27 AC 1 ms
4,380 KB
testcase_28 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
int N,i=-2,j,a;std::map<int,int>e,s,A;int main(){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<<s.rbegin()->first<<(N>++j?" ":"\n");}
0