結果

問題 No.432 占い(Easy)
ユーザー rocoderrocoder
提出日時 2017-07-04 04:55:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 432 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-15 15:03:28
合計ジャッジ時間 2,747 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,624 KB
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 32 ms
10,624 KB
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 WA -
testcase_09 RE -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 222 ms
10,496 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def su2(k,l):
    a=k+l
    if a>9:
        r=a%10
        a=1+r
    return a
T=int(input())
S=[list(input()) for i in range (T)]
#rint(S)
for i in range(T):
    for j in range(len(S[i])):
        S[i][j]=int(S[i][j])
   #     print (S)
    j=len(S[i])
  #  print (j)
    while j > 2:
        for k in range(1,len(S[i])-j-1):
            S[i][k-1]=su2(S[i][k-1], S[i][k])
        j-=1
    S[i][0]=su2(S[i][0],S[i][1])
print(S[i][0])
0