結果

問題 No.785 色食い虫
ユーザー ganmodokixganmodokix
提出日時 2019-06-06 08:29:20
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 1,437 ms
コンパイル使用メモリ 166,508 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 22:58:55
合計ジャッジ時間 2,494 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 WA -
testcase_19 WA -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 RE -
testcase_27 RE -
testcase_28 WA -
testcase_29 RE -
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace  std;
int main() {
    string sr, sg, sb;
    cin >> sr >> sg >> sb;
    long long cr = sr == "NONE" ? 16 : 16 - (sr.size()+1)/2;
    long long cg = sg == "NONE" ? 16 : 16 - (sg.size()+1)/2;
    long long cb = sb == "NONE" ? 16 : 16 - (sb.size()+1)/2;
    return cr*cr*cg*cg*cb*cb;
}
0