結果
| 問題 |
No.785 色食い虫
|
| コンテスト | |
| ユーザー |
hatsuka_iwa
|
| 提出日時 | 2021-02-20 00:47:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 1,621 ms |
| コンパイル使用メモリ | 169,508 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 03:06:51 |
| 合計ジャッジ時間 | 2,743 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> CC = {16, 16, 16};
for (int i = 0; i < 3; i++) {
string S;
cin >> S;
if (S != "NONE") {
for (char C : S) {
if (C != ',')
CC.at(i)--;
}
}
}
cout << CC.at(0) * CC.at(0) * CC.at(1) * CC.at(1) * CC.at(2) * CC.at(2) << endl;
}
hatsuka_iwa