結果
| 問題 |
No.785 色食い虫
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-13 23:45:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 501 bytes |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 73,296 KB |
| 最終ジャッジ日時 | 2025-01-06 22:07:00 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#define int long long
using namespace std;
signed main() {
string r, g, b; cin >> r >> g >> b;
int ans = 1;
if (r[0] == 'N')ans *= 16*16;
else ans *= (16 - (r.size() + 1) / 2)*(16 - (r.size() + 1) / 2);
if (g[0] == 'N')ans *= 16*16;
else ans *= (16 - (g.size() + 1) / 2)*(16 - (g.size() + 1) / 2);
if (b[0] == 'N')ans *= 16*16;
else ans *= (16 - (b.size() + 1) / 2)*(16 - (b.size() + 1) / 2);
cout << ans << endl;
}