結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-04 12:39:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 409 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-02 13:09:32 |
| 合計ジャッジ時間 | 2,101 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 6 |
ソースコード
import sys
A = input().split(".")
B = input().split(".")
for y in range(len(B)):
while len(B[y]) != len(A[y]):
if len(B[y]) > len(A[y]):
A[y] += "0"
else:
B[y] += "0"
for x in range(len(B[y])):
if int(B[y][x]) > int(A[y][x]):
print("NO")
sys.exit()
if int(B[y][x]) < int(A[y][x]) or (y == len(B) - 1 and x == len(B[y]) - 1 and int(B[y][x]) <= int(A[y][x])):
print("YES")
sys.exit()