結果
問題 | No.314 ケンケンパ |
ユーザー | water_is_I |
提出日時 | 2017-09-24 05:42:39 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 945 bytes |
コンパイル時間 | 821 ms |
コンパイル使用メモリ | 109,480 KB |
実行使用メモリ | 49,528 KB |
最終ジャッジ日時 | 2024-04-26 16:56:13 |
合計ジャッジ時間 | 5,362 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace YukiCorderNo314_20170924 { class Program { static long courseNum=1; static void Main(string[] args) { int maxStep = int.Parse(Console.ReadLine()); KenPa(maxStep); Console.WriteLine(courseNum%(10000000000+7)); } static void KenPa(int maxStep) { int kenCount=0; for (int i = 0; i < maxStep; ) { maxStep--; //ケン確定 if (kenCount == 0) { kenCount++; } //パ確定 else if (kenCount == 2) { kenCount = 0; } //分岐確定 else { courseNum++; kenCount++; //Console.WriteLine("分岐!"); KenPa(maxStep); } } } } }