結果

問題 No.318 学学学学学
ユーザー hogeover30hogeover30
提出日時 2017-01-07 17:12:35
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 1,887 ms
コンパイル使用メモリ 172,992 KB
実行使用メモリ 12,808 KB
最終ジャッジ日時 2023-09-04 20:37:22
合計ジャッジ時間 5,908 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
4,380 KB
testcase_01 AC 24 ms
4,916 KB
testcase_02 AC 29 ms
5,356 KB
testcase_03 AC 19 ms
4,760 KB
testcase_04 AC 25 ms
5,104 KB
testcase_05 AC 176 ms
12,660 KB
testcase_06 AC 203 ms
11,748 KB
testcase_07 AC 173 ms
10,748 KB
testcase_08 AC 153 ms
9,884 KB
testcase_09 AC 136 ms
8,912 KB
testcase_10 AC 113 ms
8,196 KB
testcase_11 AC 184 ms
12,788 KB
testcase_12 AC 147 ms
10,444 KB
testcase_13 AC 134 ms
9,616 KB
testcase_14 AC 105 ms
8,984 KB
testcase_15 AC 92 ms
8,496 KB
testcase_16 AC 79 ms
8,112 KB
testcase_17 AC 122 ms
12,660 KB
testcase_18 AC 103 ms
10,316 KB
testcase_19 AC 123 ms
12,808 KB
testcase_20 AC 64 ms
8,100 KB
testcase_21 AC 2 ms
4,380 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 AC 1 ms
4,380 KB
testcase_25 AC 2 ms
4,380 KB
testcase_26 AC 1 ms
4,380 KB
testcase_27 AC 1 ms
4,380 KB
testcase_28 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: 警告: #import は廃止された GCC 拡張です [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
main.cpp:2:16: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-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<<" ";}
      |                ^~~~

ソースコード

diff #

#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<<" ";}
0