結果
問題 | No.785 色食い虫 |
ユーザー |
|
提出日時 | 2019-02-08 21:28:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 460 bytes |
コンパイル時間 | 1,280 ms |
コンパイル使用メモリ | 158,160 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 18:24:54 |
合計ジャッジ時間 | 2,192 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){string c;int ans = 1;for(int p = 0;p < 3;p++){cin >> c;int tmp = 16;if(c != "NONE"){for(int i = 0;i < c.size();i+=2){tmp--;}}ans *= tmp * tmp;}cout << ans << endl;return 0;}