結果
| 問題 |
No.2213 Neq Move
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-02-10 23:09:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 210 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-07 17:10:35 |
| 合計ジャッジ時間 | 900 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
for _ in range(int(input())):
a,b,c,d = map(int,input().split())
if a>b: a,b,c,d = b,a,d,c
if c<a and d<b: print(1+c+1+d)
elif d<c: print(c-a+1+d)
elif a<=c and b<=d: print(c-a+d-b)
elif b<=d: print(1+c+d-b)
else: print((a==1)+1+c+1+d)
ニックネーム