結果
| 問題 |
No.709 優勝可能性
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-29 22:36:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 474 bytes |
| コンパイル時間 | 714 ms |
| コンパイル使用メモリ | 79,948 KB |
| 実行使用メモリ | 10,276 KB |
| 最終ジャッジ日時 | 2024-06-30 23:59:54 |
| 合計ジャッジ時間 | 6,286 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 10 TLE * 1 -- * 11 |
コンパイルメッセージ
main.cpp:10:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
10 | main()
| ^~~~
ソースコード
#include<iostream>
#include<algorithm>
#include<set>
#include<vector>
using namespace std;
int n,m;
int R[11];
vector<int>a[11];
int MR[11];
main()
{
cin>>n>>m;
for(int i=0;i<n;i++)
{
set<int>now;
for(int j=0;j<m;j++)
{
cin>>R[j];
if(MR[j]<R[j])
{
MR[j]=R[j];
a[j].clear();
a[j].push_back(i);
}
else if(MR[j]==R[j])
{
a[j].push_back(i);
}
for(int k=0;k<a[j].size();k++)now.insert(a[j][k]);
}
cout<<now.size()<<endl;
}
}