結果
問題 | No.73 helloworld |
ユーザー |
|
提出日時 | 2016-05-06 12:43:54 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 53,596 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 10:07:23 |
合計ジャッジ時間 | 936 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 7 |
ソースコード
#include <iostream> using namespace std; #define N 26 int c[N]; int main() { for ( int i = 0; i < N; i++ ) { cin >> c[i]; } int x = c['h' - 'a'] * c['e' - 'a'] * c['w' - 'a'] * c['r' - 'a'] * c['d' - 'a']; int y = c['o' - 'a']; x *= (y / 2) * (y - (y / 2)); int z = c['l' - 'a']; x *= (z / 3) * (z - (z / 3)) * (z - (z / 3) - 1) / 2; cout << x << endl; return 0; }