結果
| 問題 |
No.785 色食い虫
|
| コンテスト | |
| ユーザー |
addeight2
|
| 提出日時 | 2019-02-09 14:06:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 419 bytes |
| コンパイル時間 | 1,328 ms |
| コンパイル使用メモリ | 158,068 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 19:08:38 |
| 合計ジャッジ時間 | 2,192 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
typedef long long ll;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,a) FOR(i,0,a)
using namespace std;
int r,g,b;
int main(){
{
string s;
cin>>s;
if(s!="NONE"){
r=(int)s.size()/2+1;
}
cin>>s;
if(s!="NONE"){
g=(int)s.size()/2+1;
}
cin>>s;
if(s!="NONE"){
b=(int)s.size()/2+1;
}
}
int ans=(16-r)*(16-r)*(16-g)*(16-g)*(16-b)*(16-b);
cout<<ans<<endl;
}
addeight2