結果
| 問題 | No.299 蟻本が読めない |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-26 14:29:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 1,000 ms |
| コード長 | 483 bytes |
| コンパイル時間 | 961 ms |
| コンパイル使用メモリ | 107,752 KB |
| 実行使用メモリ | 24,292 KB |
| 最終ジャッジ日時 | 2025-11-26 14:29:42 |
| 合計ジャッジ時間 | 1,729 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Program
{
public static void Main()
{
long book = long.Parse(Console.ReadLine() ?? string.Empty);
//string[] pass = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
//string a = Console.ReadLine() ?? string.Empty;
if(book == 1)
{
Console.WriteLine(316);
}
else
{
long page = (book - 1) * 52 + 316;
Console.WriteLine(page);
}
}
}