Submission #62760545


Source Code Expand

#!/usr/bin/env python3
from itertools import accumulate,chain,combinations,groupby,permutations,product
from collections import deque,Counter
from bisect import bisect_left,bisect_right
from math import gcd,sqrt,sin,cos,tan,degrees,radians,ceil,floor
from fractions import Fraction
from decimal import Decimal
import sys
#rstripが必要なことも
#input = lambda: sys.stdin.readline().rstrip()
#inputの高速化、基本はいらん、入力が長いときに使用
#from sys import setrecursionlimit
#setrecursionlimit(10**7)
MOD=10**9+7
INF=float('inf')
#float型の無限大inf
def resolve():
    # n=int(input())
    s1, s2 = input().split()
    #A = list(map(int, input().split()))
    #print(s1)
    if s1=="sick" and s2=="sick":
        print(1)
    if s1=="sick" and s2=="fine":
        print(2)
    if s1=="fine" and s2=="sick":
        print(3)
    if s1=="fine" and s2=="fine":
        print(4)

if __name__ == "__main__":
    resolve()

Submission Info

Submission Time
Task A - Poisonous Oyster
User rikuwo
Language Python (Mambaforge / CPython 3.10.10)
Score 100
Code Size 982 Byte
Status AC
Exec Time 20 ms
Memory 9184 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 01_all_00.txt, 01_all_01.txt, 01_all_02.txt, 01_all_03.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 20 ms 8936 KiB
00_sample_01.txt AC 19 ms 9072 KiB
01_all_00.txt AC 19 ms 8988 KiB
01_all_01.txt AC 19 ms 9068 KiB
01_all_02.txt AC 20 ms 9056 KiB
01_all_03.txt AC 19 ms 9060 KiB
02_random_00.txt AC 19 ms 8988 KiB
02_random_01.txt AC 19 ms 8912 KiB
02_random_02.txt AC 20 ms 9184 KiB
02_random_03.txt AC 20 ms 9072 KiB