結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2019-12-05 22:40:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 466 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-23 02:49:54 |
合計ジャッジ時間 | 2,435 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 23 WA * 4 RE * 6 |
ソースコード
list_0 = input().split('.') list_1 = input().split('.') rel = [] for i in range(3): if list_0[i] == list_1[i]: rel.append(0) elif list_0[i] > list_1[i]: rel.append(-1) elif list_0[i] < list_1[i]: rel.append(1) judge_list = [i <= 0 for i in rel] if all(judge_list) or rel.index(-1) == 0: res = 1 else: res = 0 if res == 1: print('YES') else: print('NO')