結果

問題 No.785 色食い虫
ユーザー 沙耶花沙耶花
提出日時 2022-07-30 14:15:18
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 3,977 ms
コンパイル使用メモリ 250,208 KB
最終ジャッジ日時 2025-01-30 16:39:16
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint1000000007;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000000000

int main() {
    
	long long ans = 1;
	
	rep(i,3){
		string s;
		cin>>s;
		int remain = 16;
		if(s=="NONE"){
		}
		else{
			remain -= (s.size()+1)/2;
		}
		ans *= remain*remain;
	}
	cout<<ans<<endl;
	
    return 0;
}
0