結果

問題 No.318 学学学学学
ユーザー syarosyaro
提出日時 2016-02-23 22:37:04
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 1,775 ms
コンパイル使用メモリ 152,732 KB
実行使用メモリ 12,904 KB
最終ジャッジ日時 2023-09-04 18:32:06
合計ジャッジ時間 6,234 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
4,380 KB
testcase_01 AC 24 ms
4,948 KB
testcase_02 AC 30 ms
5,264 KB
testcase_03 AC 19 ms
4,736 KB
testcase_04 AC 26 ms
5,088 KB
testcase_05 AC 194 ms
12,904 KB
testcase_06 AC 191 ms
11,520 KB
testcase_07 AC 181 ms
10,744 KB
testcase_08 AC 156 ms
9,852 KB
testcase_09 AC 139 ms
9,252 KB
testcase_10 AC 117 ms
8,112 KB
testcase_11 AC 205 ms
12,696 KB
testcase_12 AC 148 ms
10,408 KB
testcase_13 AC 139 ms
9,816 KB
testcase_14 AC 107 ms
8,980 KB
testcase_15 AC 93 ms
8,500 KB
testcase_16 AC 79 ms
8,060 KB
testcase_17 AC 127 ms
12,704 KB
testcase_18 AC 104 ms
10,420 KB
testcase_19 AC 126 ms
12,688 KB
testcase_20 AC 64 ms
8,096 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,380 KB
testcase_23 AC 1 ms
4,380 KB
testcase_24 AC 1 ms
4,376 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 AC 1 ms
4,380 KB
testcase_27 AC 1 ms
4,376 KB
testcase_28 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:21: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 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<<s.rbegin()->first<<(N>++j?" ":"\n");}
                     ^

ソースコード

diff #

#include<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<<s.rbegin()->first<<(N>++j?" ":"\n");}
0