結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2020-08-09 13:22:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 1,314 ms |
コンパイル使用メモリ | 167,136 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 12:14:50 |
合計ジャッジ時間 | 2,160 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> using ll = long long; using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string c[3]; cin >> c[0] >> c[1] >> c[2]; long res{ 1 }; for (int i = 0; i < 3; ++i) { long r = c[i] == "NONE" ? 16 : 16 - (c[i].size() + 1) / 2; res *= r*r; } cout << res << "\n"; return 0; }