結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2019-01-06 16:12:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 425 bytes |
コンパイル時間 | 4,713 ms |
コンパイル使用メモリ | 108,600 KB |
実行使用メモリ | 25,432 KB |
最終ジャッジ日時 | 2024-11-23 23:51:52 |
合計ジャッジ時間 | 5,254 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 RE * 29 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); //回答となる数字 int ans = 3; //Nの約数を調べていく for (int i = 3; i <= N; i++) { if (N % i == 0) { ans = i; break; } } //出力 Console.WriteLine(ans); } }