結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
![]() |
提出日時 | 2020-01-15 03:28:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 1,998 ms |
コンパイル使用メモリ | 173,624 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-29 18:08:17 |
合計ジャッジ時間 | 3,544 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 11 WA * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; map<int, int> M; int ans = 0; for (int i = 0, L; i < N && cin >> L; i++) { M[L]++; if (M[L] > 0 && L > ans) ans = L; } cout << ans << "\n"; }