結果
問題 | No.1992 Tendon Walk |
ユーザー | jun |
提出日時 | 2022-07-08 18:12:13 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 850 bytes |
コンパイル時間 | 15,681 ms |
コンパイル使用メモリ | 146,964 KB |
実行使用メモリ | 162,564 KB |
最終ジャッジ日時 | 2023-08-27 17:23:01 |
合計ジャッジ時間 | 17,185 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
27,804 KB |
testcase_01 | AC | 43 ms
27,776 KB |
testcase_02 | WA | - |
testcase_03 | AC | 42 ms
28,236 KB |
testcase_04 | AC | 42 ms
27,880 KB |
testcase_05 | AC | 43 ms
28,008 KB |
testcase_06 | AC | 43 ms
27,948 KB |
testcase_07 | AC | 43 ms
27,892 KB |
testcase_08 | AC | 43 ms
162,564 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 138 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; namespace ConsoleApp3 { class Program { static void Main(string[] args) { var x = int.Parse(Console.ReadLine()); var a = x / 2; var b = x % 2; if (x == 2) { Console.WriteLine(2); return; } else if (x==4) { Console.WriteLine(4); return; } switch (x % 2) { case 0: a = x / 4; Console.WriteLine(a * 10 + 4); break; case 1: a = (x - 3) / 2; Console.WriteLine(a * 10 + 5); break; default: break; } } } }