結果
| 問題 | No.1722 [Cherry 3rd Tune C] In my way |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-29 21:28:56 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 120 ms / 2,000 ms |
| + 531µs | |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2026-09-11 12:28:05 |
| 合計ジャッジ時間 | 3,358 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
Main.py:7: SyntaxWarning: invalid decimal literal if a<b and (ans==-1or ans>b-a):
ソースコード
n,m=map(int,input().split())
x=list(map(int,input().split()))
y=list(map(int,input().split()))
for a in x:
ans=-1
for b in y:
if a<b and (ans==-1or ans>b-a):
ans=b-a
if ans==-1:
ans='Infinity'
print(ans)