結果

問題 No.1346 Rectangle
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-01-16 14:17:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,836 KB
実行使用メモリ 53,800 KB
最終ジャッジ日時 2024-04-10 01:35:40
合計ジャッジ時間 1,533 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,116 KB
testcase_01 AC 34 ms
52,060 KB
testcase_02 AC 35 ms
52,800 KB
testcase_03 AC 34 ms
52,120 KB
testcase_04 AC 32 ms
52,276 KB
testcase_05 AC 33 ms
52,204 KB
testcase_06 AC 32 ms
52,548 KB
testcase_07 AC 33 ms
52,420 KB
testcase_08 AC 34 ms
51,828 KB
testcase_09 AC 34 ms
53,800 KB
testcase_10 AC 34 ms
52,216 KB
testcase_11 AC 33 ms
52,284 KB
testcase_12 AC 32 ms
52,312 KB
testcase_13 AC 34 ms
52,812 KB
testcase_14 AC 39 ms
52,556 KB
testcase_15 AC 35 ms
53,184 KB
testcase_16 AC 35 ms
52,500 KB
testcase_17 AC 34 ms
52,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

X
Y
X
Y

短い方で考えてみよう
1の時、inf
2の時、
XXXXXXXX
YYYYYYYY
で無限におけるのでinf

3の時,
XYYXYX
YYXXXY
YXYYXX
で6?

4の時5 4C2 = 6

XX
XY
YX
YY

5の時4

6の時3

7の時2…

"""

from sys import stdin

N = int(stdin.readline())

lis = [None,"INF","INF",6,6,4,4]
if N < 7:
    print (lis[N])
else:
    print (2)
0