結果
問題 | No.785 色食い虫 |
ユーザー | たぴちゃん |
提出日時 | 2019-02-08 21:26:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 2,090 ms |
コンパイル使用メモリ | 193,184 KB |
最終ジャッジ日時 | 2025-01-06 20:52:47 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int ans = 1; for(int i = 0; i < 3; i++){ string s; cin >> s; if(s == "NONE"){ ans *= 16 * 16; }else{ int t = (s.size() + 1) / 2; ans *= (16 - t) * (16 - t); } } cout << ans << endl; }