結果

問題 No.3033 Test of Russian
ユーザー algon_320algon_320
提出日時 2018-04-01 22:25:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 1,005 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,896 KB
実行使用メモリ 8,816 KB
最終ジャッジ日時 2023-09-08 12:41:25
合計ジャッジ時間 834 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,748 KB
testcase_01 AC 21 ms
8,740 KB
testcase_02 AC 20 ms
8,800 KB
testcase_03 AC 20 ms
8,816 KB
testcase_04 AC 20 ms
8,660 KB
testcase_05 AC 20 ms
8,684 KB
testcase_06 AC 19 ms
8,780 KB
testcase_07 AC 20 ms
8,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from collections import deque
import heapq
from collections import Counter
import math

# ------------------------------------------------------
class IN:
    @staticmethod
    def singleInt():
        return int(input())

    @staticmethod
    def singleStr():
        return input()

    @staticmethod
    def listInt():
        return list(map(int, input().split()))

    @staticmethod
    def listStr():
        return input().split()
# ------------------------------------------------------
def contain(c, x):
    return (x in c)

def str_reverse(s):
    return s[::-1]

def ctoi(c):
    return int.from_bytes(c.encode(), byteorder='big')
def itoc(x):
    return x.to_bytes((x.bit_length() + 7) // 8, byteorder='big').decode()

INF = 1001001001001001001
# ------------------------------------------------------

if __name__ == '__main__':
    N, M, X = IN.listInt()
    if X - (N-M) >= 3:
        print("YES")
    else:
        print("NO")


0