結果
| 問題 | No.314 ケンケンパ |
| コンテスト | |
| ユーザー |
water_is_I
|
| 提出日時 | 2017-09-24 05:42:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 945 bytes |
| 記録 | |
| コンパイル時間 | 612 ms |
| コンパイル使用メモリ | 104,704 KB |
| 実行使用メモリ | 45,056 KB |
| 最終ジャッジ日時 | 2026-05-09 19:03:51 |
| 合計ジャッジ時間 | 5,423 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 16 |
コンパイルメッセージ
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);
}
}
}
}
}
water_is_I