結果
問題 | No.73 helloworld |
ユーザー |
|
提出日時 | 2016-11-01 11:03:34 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 00:39:43 |
合計ジャッジ時間 | 1,015 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 6 |
ソースコード
import string ans = 1 for i, c in enumerate(string.ascii_lowercase): n = int(raw_input()) if c in 'hewrd': ans *= n elif c == 'o': ans *= (n/2+n%2) * n/2 elif c == 'l': m = 0 for i in xrange(2, n): m = max(m, i*(i-1)/2*(n-i)) ans *= m print ans