結果

問題 No.785 色食い虫
ユーザー rpy3cpp
提出日時 2019-05-05 02:23:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 393 bytes
コンパイル時間 1,591 ms
コンパイル使用メモリ 166,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 16:02:09
合計ジャッジ時間 2,562 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    string S;
    long long ans = 1;
    for (int i = 0; i < 3; ++i){
        cin >> S;
        if (S == "NONE"){
            ans <<= 8;
        }else{
            int tmp = 16 - (S.size() + 1)/2;
            ans *= tmp * tmp;
        }
    }
    cout << ans << endl;
    return 0;
}

0