結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-05 15:52:25 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 587 bytes |
| コンパイル時間 | 2,265 ms |
| コンパイル使用メモリ | 103,168 KB |
| 実行使用メモリ | 22,784 KB |
| 最終ジャッジ日時 | 2024-11-06 22:18:26 |
| 合計ジャッジ時間 | 5,238 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 10 TLE * 1 -- * 16 |
コンパイルメッセージ
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 yukicorder537
{
class Program
{
static void Main(string[] args)
{
// 入力
long N = long.Parse(Console.ReadLine());
// 割れる組み合わせの確認
var ans = divPattern(N);
Console.WriteLine(ans);
Console.ReadKey();
}
static long divPattern(long N)
{
long cnt = 0;
var max = N / 2;
cnt += 2; // 1,N
for (var i = 2; i <= max; i++)
{
if (N % i == 0)
{
cnt++;
}
}
return cnt;
}
}
}