結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
hayashi
|
| 提出日時 | 2019-10-03 10:29:37 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 639 bytes |
| コンパイル時間 | 809 ms |
| コンパイル使用メモリ | 110,580 KB |
| 実行使用メモリ | 32,496 KB |
| 最終ジャッジ日時 | 2024-10-03 06:08:04 |
| 合計ジャッジ時間 | 5,019 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 RE * 5 TLE * 1 -- * 9 |
コンパイルメッセージ
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)
{
int N = int.Parse(Console.ReadLine());
int i = 1;
int answer = 0;
while(true)
{
if(N % i == 0)
{
answer += N / i;
}
i++;
if(i > N)
{
break;
}
}
Console.WriteLine(answer);
}
}
}
hayashi