結果
| 問題 |
No.276 連続する整数の和(1)
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2016-05-13 10:39:27 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 144 bytes |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 14:14:52 |
| 合計ジャッジ時間 | 712 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 8 |
ソースコード
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)
yaoshimax