結果
問題 |
No.888 約数の総和
|
ユーザー |
![]() |
提出日時 | 2019-10-03 10:46:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 556 bytes |
コンパイル時間 | 3,758 ms |
コンパイル使用メモリ | 107,284 KB |
実行使用メモリ | 29,140 KB |
最終ジャッジ日時 | 2024-10-03 06:08:48 |
合計ジャッジ時間 | 6,891 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 TLE * 1 -- * 14 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long i = 1; long answer = 0; while(i <= N) { if(N % i == 0) { answer += N / i; } i++; } Console.WriteLine(answer); } } }