結果
| 問題 |
No.785 色食い虫
|
| コンテスト | |
| ユーザー |
👑 tatyam
|
| 提出日時 | 2019-02-08 21:32:07 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 2,000 ms |
| コード長 | 770 bytes |
| コンパイル時間 | 1,601 ms |
| コンパイル使用メモリ | 193,124 KB |
| 最終ジャッジ日時 | 2025-01-06 20:53:35 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long;
using pll=pair<ll,ll>;
#define vec(type,name,...) vector<type>name(__VA_ARGS__)
#define each(i,a) for(auto&i:a)
#define name4(a,b,c,d,...) d
#define rep(...) name4(__VA_ARGS__,rep3,rep2,rep1)(__VA_ARGS__)
#define rep1(a) rep3(i,0,a)
#define rep2(i,a) rep3(i,0,a)
#define rep3(i,a,b) for(ll i=a;i<b;i++)
const ll LINF=0x1fffffffffffffff;
template <class T>bool update_min(T&a,const T&b){if(a>b){a=b;return 1;}return 0;}
template <class T>bool update_max(T&a,const T&b){if(a<b){a=b;return 1;}return 0;}
signed main(){
string a,b,c;
cin>>a>>b>>c;
ll d=a.size()/2+1,e=b.size()/2+1,f=c.size()/2+1;
if(a=="NONE")d=0;
if(b=="NONE")e=0;
if(c=="NONE")f=0;
d=16-d;
e=16-e;
f=16-f;
cout<<d*d*e*e*f*f<<endl;
}
tatyam