結果
| 問題 |
No.73 helloworld
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-17 17:23:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 5,000 ms |
| コード長 | 374 bytes |
| コンパイル時間 | 2,691 ms |
| コンパイル使用メモリ | 199,036 KB |
| 最終ジャッジ日時 | 2025-01-11 05:00:18 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0),ios::sync_with_stdio(false);
map<char,int>m;
for(char c='a';c<='z';++c){
int num; cin>>num;
m[c]=num;
}
string s="hewrd"s;
int64_t ans=1;
for(auto&&i:s){
ans*=m.at(i);
}
int ll=(m.at('l')*2+2)/3,l=m.at('l')/3;
ans*=ll*(ll-1)/2*l;
ans*=((m.at('o')+1)/2)*(m.at('o')/2);
cout<<ans<<"\n"s;
}