結果

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

テストケース

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

ソースコード

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