結果
| 問題 | No.276 連続する整数の和(1) |
| コンテスト | |
| ユーザー |
airis
|
| 提出日時 | 2015-09-04 22:43:30 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 161 ms / 1,000 ms |
| コード長 | 102 bytes |
| 記録 | |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 77,368 KB |
| 最終ジャッジ日時 | 2025-12-03 16:36:53 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
import fractions n = input() if n % 2 == 1: print n else: print fractions.gcd(n, n * (n - 1) / 2)
airis