結果
| 問題 | No.785 色食い虫 |
| コンテスト | |
| ユーザー |
m1025o1184t
|
| 提出日時 | 2019-10-14 03:12:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 472 bytes |
| 記録 | |
| コンパイル時間 | 1,623 ms |
| コンパイル使用メモリ | 166,220 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-21 10:30:10 |
| 合計ジャッジ時間 | 3,265 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string r, g, b;
cin >> r;
cin >> g;
cin >> b;
int R, G, B;
R = 16 - ((r.size() - 1) / 2 + 1);
G = 16 - ((g.size() - 1) / 2 + 1);
B = 16 - ((b.size() - 1) / 2 + 1);
if (r == "NONE") R = 16;
if (g == "NONE") G = 16;
if (b == "NONE") B = 16;
ll ans = R*R*G*G*B*B;
cout << ans << endl;
return 0;
}
m1025o1184t