結果
問題 |
No.706 多眼生物の調査
|
ユーザー |
![]() |
提出日時 | 2018-07-07 20:51:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 56,096 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-05 05:35:13 |
合計ジャッジ時間 | 774 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 5 |
ソースコード
#include<iostream> #include<string> using namespace std; #define FOR(i,num,N) for(int(i)=(num);(i)<(N);(i)++) int main(){ int N; cin>>N; int A[1000] = {0}; FOR(i,0,N){ string s; cin>>s; A[s.size()-2]++; } int a=0; int m=0; FOR(i,0,1000){ if(m<=A[i])a=i; } cout<<a<<"\n"; }