結果
| 問題 | 
                            No.998 Four Integers
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tomi
                         | 
                    
| 提出日時 | 2021-01-27 19:03:17 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 370 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-24 21:12:14 | 
| 合計ジャッジ時間 | 1,614 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 15 WA * 8 | 
ソースコード
a,b,c,d = map(int, input().split())
if (abs(a - b)==1):
    x =1
else:
    x = 0
if (abs(a - c)==1):
    x +=1
else:
    x += 0
if (abs(a - d)==1):
    x +=1
else:
    x += 0
if (abs(b - c)==1):
    x +=1
else:
    x += 0
if (abs(b - d)==1):
    x +=1
else:
    x += 0
if (abs(c - d)==1):
    x +=1
else:
    x += 0
if (x == 4):
    print ("Yes")
else:
    print ("No")
            
            
            
        
            
tomi