結果

問題 No.785 色食い虫
ユーザー silopy
提出日時 2019-08-11 19:43:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 68,020 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 23:46:06
合計ジャッジ時間 2,216 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
using namespace std;
using lint=int64_t;

int main()
{
	int num[3]{};

	for(int i=0;i<3;i++)
	{
		string str;
		cin >> str;
		int cnt=0;
		for(auto&& j:str)
			if(j==',')
				cnt++;
		if(str!="NONE")
			cnt++;

		num[i]=(16-cnt)*(16-cnt);
	}

	cout << num[0]*num[1]*num[2] << endl;
	return 0;
}
0