結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-29 10:23:14 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 1,000 ms |
| + 194µs | |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 570 ms |
| コンパイル使用メモリ | 81,444 KB |
| 実行使用メモリ | 56,052 KB |
| 最終ジャッジ日時 | 2026-09-27 23:06:29 |
| 合計ジャッジ時間 | 3,843 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
from itertools import permutations
a,b,c,d=map(int,input().split())
for p,q,r,s in permutations((a,b,c,d)):
if p==q-1 and q==r-1 and r==s-1:
print("Yes")
exit()
print("No")