結果
問題 | No.104 国道 |
ユーザー |
![]() |
提出日時 | 2018-07-21 01:52:02 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 25 ms / 5,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 807 ms |
コンパイル使用メモリ | 110,752 KB |
実行使用メモリ | 17,536 KB |
最終ジャッジ日時 | 2024-12-26 04:36:23 |
合計ジャッジ時間 | 2,027 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;class No104{static void Main(){var a=Console.ReadLine();var d=1;foreach(char b in a){switch(b){case 'R': d=d*2+1; break;case 'L': d*=2; break;}}Console.WriteLine(d);}}