結果

問題 No.193 筒の数式
ユーザー mkawa2mkawa2
提出日時 2020-01-02 11:46:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 983 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,736 KB
最終ジャッジ日時 2024-05-02 06:24:15
合計ジャッジ時間 10,304 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 470 ms
44,736 KB
testcase_03 AC 454 ms
44,728 KB
testcase_04 AC 454 ms
44,484 KB
testcase_05 AC 475 ms
44,468 KB
testcase_06 AC 461 ms
44,724 KB
testcase_07 AC 474 ms
44,472 KB
testcase_08 AC 459 ms
44,352 KB
testcase_09 AC 471 ms
44,724 KB
testcase_10 AC 456 ms
44,472 KB
testcase_11 AC 465 ms
44,484 KB
testcase_12 AC 464 ms
44,360 KB
testcase_13 AC 459 ms
44,728 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *
from bisect import *
from math import *
from collections import *
from heapq import *
from random import *
from decimal import *
import numpy as np
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
def MF(): return map(float, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LF(): return list(map(float, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
dij = [(1, 0), (0, 1), (-1, 0), (0, -1)]

def main():
    s=input()
    n=len(s)
    s*=2
    ans=0
    for i in range(n):
        if s[i].isdigit() and s[i+n-1].isdigit():
            ans=max(ans,eval(s[i:i+n]))
    print(ans)
main()
0