結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-29 22:23:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 646 ms |
| コンパイル使用メモリ | 74,488 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 23:55:42 |
| 合計ジャッジ時間 | 1,175 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main()
| ^~~~
ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
pair<int,int>cnt[1<<17];
string s;int n;
main()
{
cin>>n;
for(int i=0;i<n;i++)
{
cin>>s;
cnt[s.size()-2]=make_pair(cnt[s.size()-2].first+1,s.size()-2);
}
sort(cnt,cnt+(1<<17));
cout<<cnt[(1<<17)-1].second<<endl;
}