結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー dn6049949dn6049949
提出日時 2021-11-05 21:51:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 608 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 54,784 KB
最終ジャッジ日時 2024-04-24 05:38:37
合計ジャッジ時間 2,033 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
54,400 KB
testcase_01 AC 44 ms
54,528 KB
testcase_02 AC 44 ms
54,272 KB
testcase_03 AC 44 ms
54,784 KB
testcase_04 AC 43 ms
54,144 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 44 ms
54,016 KB
testcase_21 AC 45 ms
54,784 KB
testcase_22 AC 43 ms
54,528 KB
testcase_23 AC 42 ms
54,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def IR(n):
    return [I() for _ in range(n)]
def LIR(n):
    return [LI() for _ in range(n)]

sys.setrecursionlimit(1000000)
mod = 1000000007

def solve():
    n = set(input())
    if len(n) > 1:
        print(1)
    else:
        print(1,ord(n.pop())-ord("A")+2)
    return


if __name__ == "__main__":
    solve()
0