結果

問題 No.358 も~っと!門松列
ユーザー taka_hirataka_hira
提出日時 2016-04-17 23:09:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-15 02:25:47
合計ジャッジ時間 1,451 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 RE -
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 WA -
testcase_16 RE -
testcase_17 WA -
testcase_18 WA -
testcase_19 RE -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int, input().split())

sum = 0
if  min(A,B,C) == B:
	print ("INF")
	Sys.exit(0)

for num in range(2, max(A,B,C)):
	 A_ = A % num
	 B_ = B % num
	 C_ = C % num
	 print (A_,B_,C_,min(A_,B_,C_),max(A_,B_,C_))
	 if  min(A_,B_,C_)==B_ or max(A_,B_,C_)==B_:
	 	sum += 1
print(sum)
0