結果

問題 No.1499 羊が、何匹だっけ
ユーザー iiljjiiljj
提出日時 2021-05-07 21:27:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 9,224 KB
最終ジャッジ日時 2023-10-13 12:20:54
合計ジャッジ時間 1,120 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,076 KB
testcase_01 AC 25 ms
9,224 KB
testcase_02 AC 26 ms
9,132 KB
testcase_03 AC 26 ms
9,180 KB
testcase_04 AC 26 ms
9,000 KB
testcase_05 AC 26 ms
9,088 KB
testcase_06 AC 30 ms
9,108 KB
testcase_07 AC 26 ms
9,032 KB
testcase_08 AC 25 ms
9,132 KB
testcase_09 AC 25 ms
9,188 KB
testcase_10 AC 26 ms
9,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
n = int(input())
r = re.compile(r'Hitsuji ga (\d+) hiki')
for _ in range(n):
    s = input()
    m = r.match(s)
    print(f'Hitsuji ga {int(m.group(1))+1} hiki')
0