結果
問題 | No.706 多眼生物の調査 |
ユーザー |
![]() |
提出日時 | 2018-06-29 22:30:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 55,080 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 23:57:37 |
合計ジャッジ時間 | 867 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | WA * 5 |
ソースコード
#include<stdio.h> #include<iostream> int N; int a[1010]; using namespace std; int main (){ cin >> N; for(int i=0; i<N; i++){ string s; cin >> s; a[s.length()-2]++; } int ans = -1; for(int i=0; i<1001; i++){ if( a[i] > ans ) ans = i; } cout << ans << endl; return 0; }