結果
| 問題 |
No.756 チャンパーノウン定数 (1)
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-02-10 12:11:55 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 339 bytes |
| コンパイル時間 | 732 ms |
| コンパイル使用メモリ | 107,512 KB |
| 実行使用メモリ | 25,816 KB |
| 最終ジャッジ日時 | 2024-10-01 06:20:13 |
| 合計ジャッジ時間 | 2,086 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
using System.Collections.Generic;
static class NagataKanaIsAGenius {
public static void Main() {
int n=int.Parse(Console.ReadLine());
if(n<10){
Console.WriteLine(n);
}else{
int x=n/2+5;
Console.WriteLine(n%2==0?x/10:x%10);
}
}
}
ngtkana