結果
問題 |
No.437 cwwゲーム
|
ユーザー |
![]() |
提出日時 | 2016-10-29 02:59:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,760 KB |
最終ジャッジ日時 | 2024-11-24 07:07:10 |
合計ジャッジ時間 | 30,359 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 30 TLE * 9 |
ソースコード
def f(s,n): r=n;d=set(s) for i in d: for j in d: t=i+j+j;a='' for k in s: if t and k==t[0]:t=t[1:] else:a+=k if not all((i in['0',j],t)):r=max(r,f(a,n+int(i+j+j))) return r print(f(input(),0))