#!/usr/bin/env python# -*- coding: utf-8 -*-print("请输入三位数:")num = input()# 定义常量SumNum = 0# 1.判断当前输入的字符型的数值是否为3位数if len(num) == 3: # 判断数值是否为十进制数据,避免输入的不是数字的字符 if num.isdecimal() is True: # 字符类型for循环时,是以字符串的单个字符输出 for i in num: # 2.求每一位数的3次方的和 Sum
E. Tetrahedron time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a tetrahedron. Let's mark its vertices with letters A, B, C and D correspondingly. An ant is standing in the ve