結果

問題 No.358 も~っと!門松列
ユーザー fumofumofunifumofumofuni
提出日時 2021-09-14 14:52:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 292 bytes
コンパイル時間 1,222 ms
コンパイル使用メモリ 86,460 KB
実行使用メモリ 75,576 KB
最終ジャッジ日時 2023-09-09 11:50:24
合計ジャッジ時間 4,288 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
75,400 KB
testcase_01 AC 80 ms
75,548 KB
testcase_02 AC 79 ms
75,404 KB
testcase_03 AC 79 ms
75,276 KB
testcase_04 AC 84 ms
75,480 KB
testcase_05 AC 83 ms
75,484 KB
testcase_06 AC 80 ms
75,284 KB
testcase_07 AC 81 ms
75,512 KB
testcase_08 AC 80 ms
75,192 KB
testcase_09 AC 82 ms
75,576 KB
testcase_10 AC 79 ms
75,060 KB
testcase_11 AC 82 ms
75,436 KB
testcase_12 AC 82 ms
75,356 KB
testcase_13 AC 81 ms
75,408 KB
testcase_14 AC 82 ms
75,404 KB
testcase_15 AC 82 ms
75,312 KB
testcase_16 AC 81 ms
75,408 KB
testcase_17 AC 82 ms
75,432 KB
testcase_18 AC 82 ms
75,448 KB
testcase_19 AC 82 ms
75,380 KB
testcase_20 AC 81 ms
75,356 KB
testcase_21 AC 81 ms
75,484 KB
testcase_22 AC 83 ms
75,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def isok(a,b,c):
    if a==b or b==c or c==a:
        return 0
    if a<b and b>c:
        return 1
    if a>b and b<c:
        return 1
    return 0
a,b,c=map(int,input().split())
res=0
for i in range(1,100000):
    res+=isok(a%i,b%i,c%i)
if res>10000:
    print('INF')
else :
    print(res)
0