結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2024-10-06 18:46:43 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 465 bytes |
コンパイル時間 | 961 ms |
コンパイル使用メモリ | 92,892 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-06 18:46:45 |
合計ジャッジ時間 | 1,697 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll ans = 1; for(int i = 0;i<3;i++){ string s; cin>>s; if(s=="NONE"){ ans *= 256; continue; } int n = s.size(); int p = (n+1) / 2; int can = 16 - p; ans *= can * can; } cout<<ans<<endl; }