結果
| 問題 | No.888 約数の総和 |
| コンテスト | |
| ユーザー |
hayashi
|
| 提出日時 | 2019-10-03 10:29:37 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 639 bytes |
| 記録 | |
| コンパイル時間 | 3,594 ms |
| コンパイル使用メモリ | 107,312 KB |
| 実行使用メモリ | 26,300 KB |
| 最終ジャッジ日時 | 2026-04-19 07:45:09 |
| 合計ジャッジ時間 | 6,695 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 RE * 14 TLE * 1 |
コンパイルメッセージ
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