結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2016-09-10 12:31:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 5,000 ms |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 669 ms |
| コンパイル使用メモリ | 107,196 KB |
| 実行使用メモリ | 26,316 KB |
| 最終ジャッジ日時 | 2026-05-12 01:31:29 |
| 合計ジャッジ時間 | 1,999 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Yuki104
{
public static void Main()
{
var s = Console.ReadLine();
int r = 1;
foreach(char c in s) r = (c == 'L') ? 2 * r : 2 * r + 1;
Console.WriteLine(r);
}
}
ixTL255