結果

問題 No.785 色食い虫
ユーザー KKT89
提出日時 2019-09-24 07:59:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 526 ms
コンパイル使用メモリ 70,436 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-19 04:58:17
合計ジャッジ時間 1,351 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;

int main(){
	string s[3];
	int ans=1;
	for(int i=0;i<3;i++){
		cin >> s[i];
		int m=(s[i].size()+1)/2;
		if(s[i]=="NONE")m=0;
		ans*=(16-m)*(16-m);
	}
	cout << ans << endl;
}
0