結果

問題 No.432 占い(Easy)
ユーザー rocoderrocoder
提出日時 2017-07-04 22:10:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 477 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-15 16:19:46
合計ジャッジ時間 2,682 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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=0
 #   print (j)
    while j < len (S[i])-2:
        for k in range(1,len(S[i])-j):
            S[i][k-1]=su2(S[i][k-1], S[i][k])
     #       print (S)
        j+=1
    if j==2:
        S[i][0]=su2(S[i][0],S[i][1])
    print(S[i][0])
0