結果

問題 No.276 連続する整数の和(1)
ユーザー yaoshimaxyaoshimax
提出日時 2016-05-13 10:39:27
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 144 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,708 KB
実行使用メモリ 6,104 KB
最終ジャッジ日時 2023-07-28 05:59:10
合計ジャッジ時間 856 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 11 ms
5,780 KB
testcase_02 AC 11 ms
5,840 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def lcd(a,b):
    if a==0:
        return 1
    if b<a:
        return lcd(b,a)
    return lcd(b%a,a)
N=int(raw_input())
print lcd(N*(N-1)/2,N)
0