結果

問題 No.112 ややこしい鶴亀算
ユーザー yuki2006yuki2006
提出日時 2015-09-19 17:46:50
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 6,660 KB
実行使用メモリ 6,128 KB
最終ジャッジ日時 2023-09-26 13:46:59
合計ジャッジ時間 1,636 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,852 KB
testcase_01 AC 12 ms
5,924 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 10 ms
5,888 KB
testcase_05 AC 11 ms
5,988 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 11 ms
6,032 KB
testcase_09 AC 12 ms
5,936 KB
testcase_10 WA -
testcase_11 AC 11 ms
5,936 KB
testcase_12 WA -
testcase_13 AC 11 ms
6,044 KB
testcase_14 AC 12 ms
5,848 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 11 ms
5,856 KB
testcase_20 AC 11 ms
5,888 KB
testcase_21 WA -
testcase_22 AC 11 ms
6,112 KB
testcase_23 WA -
testcase_24 AC 11 ms
5,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())

a = map(int, raw_input().split())

a.sort()

if a[len(a) - 1] == a[0]:
    if a[0] == 2 * (N - 1):
        print N, 0
    else:
        print 0, N
else:
    for i in xrange(1, N):
        if a[i - 1] != a[i]:
            print i, N - i
            break
0