結果
問題 | No.785 色食い虫 |
ユーザー |
![]() |
提出日時 | 2023-08-21 22:08:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 1,000 ms |
コンパイル使用メモリ | 100,976 KB |
最終ジャッジ日時 | 2025-02-16 12:08:01 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> using namespace std; int main() { string r, g, b; cin >> r >> g >> b; int p, q, s; p = 16 - (r.size()+1)/2; q = 16 - (g.size()+1)/2; s = 16 - (b.size()+1)/2; if (r.size() == 4) p = 16; if (g.size() == 4) q = 16; if (b.size() == 4) s = 16; cout << p*p*q*q*s*s << endl; }