結果

問題 No.395 永遠の17歳
ユーザー _matumo_
提出日時 2018-08-18 16:26:08
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 479 bytes
コンパイル時間 768 ms
コンパイル使用メモリ 109,124 KB
実行使用メモリ 27,584 KB
最終ジャッジ日時 2024-10-15 17:53:00
合計ジャッジ時間 2,077 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 11 RE * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            int nn = int.Parse(Console.ReadLine());
            int mm = nn - 7;
            int i;

            for (i = mm / 7; i > 0; i--)
            {
                if (mm % i == 0) break;
            }
            Console.WriteLine(mm/i);
            Console.ReadLine();
        }
    }
}
0