結果
問題 | No.785 色食い虫 |
ユーザー |
![]() |
提出日時 | 2019-02-08 21:25:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 2,043 ms |
コンパイル使用メモリ | 192,668 KB |
最終ジャッジ日時 | 2025-01-06 20:52:24 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> using namespace std; using int64 = long long; int main() { string a, b, c; cin >> a >> b >> c; int x = 16, y = 16, z = 16; if(a != "NONE") x -= (a.size() + 1) / 2; if(b != "NONE") y -= (b.size() + 1) / 2; if(c != "NONE") z -= (c.size() + 1) / 2; cout << x * y * z * x * y * z << endl; }