結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-14 16:48:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 787 bytes |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-23 21:13:54 |
| 合計ジャッジ時間 | 1,718 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 23 |
ソースコード
class IsContInt(object):
def __init__(self):
pass
def constructor(self, data):
data = self.str2int(data)
# self.A = data[0]
# self.B = data[1]
# self.C = data[2]
# self.d = data[3]
self.data = data.sort()
def run(self):
self.analysis()
def analysis(self):
for num1, num2 in zip(self.data, self.data[1:]):
if num1==num2+1:
continue
else:
print("No")
exit()
print("Yes")
@classmethod
def str2int(data):
data = map(int, data.split(" "))
return data
if __name__=="__main__":
data = input()
func = IsContInt(self)
func.constructor(data=data)