結果
問題 | No.785 色食い虫 |
ユーザー |
|
提出日時 | 2020-03-29 15:28:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 563 ms |
コンパイル使用メモリ | 62,804 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 13:36:57 |
合計ジャッジ時間 | 1,482 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; int main(void){ int ans=1; for(int i=0;i<3;i++){ string str; getline(cin,str); if(str=="NONE"){ ans*=16*16; }else { int cnt=16-1-count(str.begin(),str.end(),','); ans*=cnt*cnt; } } cout << ans << endl; return 0; }