結果
問題 | No.437 cwwゲーム |
ユーザー |
![]() |
提出日時 | 2016-10-29 06:08:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 102 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-12 08:30:23 |
合計ジャッジ時間 | 3,398 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 40 WA * 1 |
コンパイルメッセージ
Main.py:6: SyntaxWarning: invalid decimal literal if len(s)-len(a)>2and i>'0'and i!=j:r=max(r,f(a,n+int(i+j+j)))
ソースコード
def f(s,n): r=n for i in s: for j in s: p=s.split(i,1);a=p[0]+p[1].replace(j,'',2) if len(s)-len(a)>2and i>'0'and i!=j:r=max(r,f(a,n+int(i+j+j))) return r print(f(input(),0))