結果
| 問題 | No.785 色食い虫 | 
| コンテスト | |
| ユーザー |  SSRS | 
| 提出日時 | 2020-08-26 18:45:25 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 4 ms / 2,000 ms | 
| コード長 | 371 bytes | 
| コンパイル時間 | 908 ms | 
| コンパイル使用メモリ | 73,292 KB | 
| 最終ジャッジ日時 | 2025-01-13 15:02:35 | 
| ジャッジサーバーID (参考情報) | judge3 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 28 | 
ソースコード
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
	string R;
	cin >> R;
	string G;
	cin >> G;
	string B;
	cin >> B;
	vector<string> S = {R, G, B};
	int ans = 1;
	for (int i = 0; i < 3; i++){
		if (S[i] == "NONE"){
			ans *= 256;
		} else {
			int tmp = 16 - (S[i].size() + 1) / 2;
			ans *= tmp * tmp;
		}
	}
	cout << ans << endl;
}
            
            
            
        