結果

問題 No.785 色食い虫
ユーザー tonegawa
提出日時 2020-08-13 05:57:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 2,267 ms
コンパイル使用メモリ 192,212 KB
最終ジャッジ日時 2025-01-12 21:43:31
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using ll = long long;

using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string c[3];
    cin >> c[0] >> c[1] >> c[2];

    long res{ 1 };
    for (int i = 0; i < 3; ++i)
    {
        long r = c[i] == "NONE" ? 16 : 16 - (c[i].size() + 1) / 2;
        res *= r*r;
    }

    cout << res << "\n";

    return 0;
}
0