結果

提出番号 778
提出者 Pulmn
言語 C++
提出日時 2017-08-01 14:34:45
問題名 (27)575!575じゃん!575!
結果 WA
点数 0%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 WA 0% 59ms 8000KB
2 WA 0% 100ms 8320KB
3 WA 0% 13ms 7776KB
4 WA 0% 35ms 7776KB
5 WA 0% 14ms 7696KB
6 WA 0% 16ms 8000KB
7 WA 0% 40ms 8320KB
8 WA 0% 43ms 8336KB
9 WA 0% 42ms 8320KB
10 WA 0% 25ms 8320KB
11 AC 100% 2ms 8320KB
12 WA 0% 31ms 7760KB
13 WA 0% 46ms 7504KB
14 WA 0% 21ms 8304KB
15 WA 0% 25ms 7680KB
16 WA 0% 11ms 7712KB
17 WA 0% 46ms 7792KB
18 WA 0% 39ms 8320KB
19 WA 0% 10ms 8320KB
20 WA 0% 24ms 7792KB
21 AC 100% 2ms 7792KB
22 AC 100% 2ms 7808KB
23 AC 100% 1ms 7984KB

ソースコード

#include <iostream>
#include <fstream>
#include <cassert>
#include <typeinfo>
#include <vector>
#include <stack>
#include <cmath>
#include <set>
#include <map>
#include <string>
#include <algorithm>
#include <cstdio>
#include <queue>
#include <iomanip>
#include <cctype>
#include <random>
#include <complex>
#define syosu(x) fixed<<setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef pair<double,double> pdd;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<char> vc;
typedef vector<vc> vvc;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<P> vp;
typedef vector<vp> vvp;
typedef vector<pll> vpll;
typedef pair<P,int> pip;
typedef vector<pip> vip;
const int inf=1<<29;
const ll INF=1ll<<60;
const double pi=acos(-1);
const double eps=1e-8;
const ll mod=1e9+7;
const int dx[4]={0,1,0,-1},dy[4]={1,0,-1,0};

int n;

int main(){
	cin>>n;
	int x=0,y=0;
	for(int i=0;i<n;i++){
		string s;
		cin>>s;
		if(s.size()==5) x++;
		else y++;
	}
	if(x<2||!y) cout<<0<<endl;
	else cout<<x*(x-1)*y<<endl;
}