結果

問題 No.1070 Missing a space
ユーザー raven7959raven7959
提出日時 2021-08-07 23:40:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,832 KB
実行使用メモリ 56,432 KB
最終ジャッジ日時 2023-10-18 23:41:59
合計ジャッジ時間 1,276 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,540 KB
testcase_01 AC 38 ms
51,536 KB
testcase_02 WA -
testcase_03 AC 40 ms
51,536 KB
testcase_04 AC 37 ms
51,548 KB
testcase_05 AC 36 ms
51,548 KB
testcase_06 AC 39 ms
56,228 KB
testcase_07 AC 36 ms
51,688 KB
testcase_08 AC 36 ms
51,620 KB
testcase_09 AC 39 ms
56,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

C=input()
ans=0
L=[]
for i in range(len(C)-1):
  A=C[:i+1]
  B=C[i+1:]
  if A[0]!="0" and B[0]!="0":
    a=int(A)
    b=int(B)
    if not [min(a,b),max(a,b)] in L:
      ans+=1
      L.append([min(a,b),max(a,b)])
print(ans)
0