結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
![]() |
提出日時 | 2017-06-08 15:54:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 595 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 66,780 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 13:28:27 |
合計ジャッジ時間 | 1,707 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 9 |
ソースコード
#include <iostream> #include <vector> #define LEVEL_SIZE 6 int most_sloved_problem (int array[6]) { int num=0; for(int i=0; i<LEVEL_SIZE-1; i++) { if(array[i] <= array[i+1] && array[i]!=0) { num = i+1; } else { continue; } } return num+1; } int main() { using std::cin; using std::cout; using std::endl; int level[LEVEL_SIZE] = {0}; int N,L; cin >> N; for(int i=0; i<N; i++) { cin >> L; level[L-1]++; } int most = most_sloved_problem(level); cout << most << endl; return 0; }