結果
| 問題 |
No.276 連続する整数の和(1)
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2016-05-13 10:40:10 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 1,000 ms |
| コード長 | 176 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 14:14:59 |
| 合計ジャッジ時間 | 677 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
def lcd(a,b):
if b<a:
return lcd(b,a)
if a==0:
return 1
if b%a==0:
return a
return lcd(b%a,a)
N=int(raw_input())
print lcd(N*(N-1)/2,N)
yaoshimax