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