結果

問題 No.1257 変わった平均値
ユーザー donutholedonuthole
提出日時 2020-10-16 23:20:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 792 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,964 KB
実行使用メモリ 10,996 KB
最終ジャッジ日時 2023-09-28 05:19:20
合計ジャッジ時間 2,566 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
10,996 KB
testcase_01 AC 41 ms
10,936 KB
testcase_02 AC 40 ms
10,828 KB
testcase_03 AC 39 ms
10,940 KB
testcase_04 AC 39 ms
10,912 KB
testcase_05 AC 40 ms
10,948 KB
testcase_06 AC 40 ms
10,912 KB
testcase_07 AC 40 ms
10,836 KB
testcase_08 AC 40 ms
10,804 KB
testcase_09 AC 40 ms
10,900 KB
testcase_10 AC 39 ms
10,888 KB
testcase_11 AC 40 ms
10,928 KB
testcase_12 AC 39 ms
10,812 KB
testcase_13 AC 39 ms
10,804 KB
testcase_14 AC 40 ms
10,952 KB
testcase_15 AC 39 ms
10,924 KB
testcase_16 AC 39 ms
10,808 KB
testcase_17 AC 40 ms
10,916 KB
testcase_18 AC 39 ms
10,836 KB
testcase_19 AC 40 ms
10,912 KB
testcase_20 AC 40 ms
10,816 KB
testcase_21 AC 40 ms
10,900 KB
testcase_22 AC 39 ms
10,900 KB
testcase_23 AC 40 ms
10,876 KB
testcase_24 AC 40 ms
10,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import typing
import sys

# import re
import math
import collections
# import decimal
import bisect
import itertools
import fractions
# import functools
import copy
import heapq
import decimal
# import statistics
import queue
# import numpy as np

# sys.setrecursionlimit(10000001)
INF = 10 ** 20
MOD = 10 ** 9 + 7
# MOD = 998244353


def ni(): return int(sys.stdin.buffer.readline())
def ns(): return map(int, sys.stdin.buffer.readline().split())
def na(): return list(map(int, sys.stdin.buffer.readline().split()))


# ===CODE===

def main():
    l1 = na()
    l2 = na()
    flg1 = l1 == l2
    l1.sort()
    l2.sort()
    flg2 = l1 == l2
    flg3 = len(set(l1)) == 3

    if flg2:
        print("Yes")
        print(2)
    else:
        print("No")


if __name__ == '__main__':
    main()
0