結果
問題 | No.104 国道 |
ユーザー |
|
提出日時 | 2015-11-29 18:08:37 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 406 ms |
コンパイル使用メモリ | 53,776 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 05:10:15 |
合計ジャッジ時間 | 1,154 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
#include <iostream>using namespace std;int main(){ios::sync_with_stdio(false);int now=1;char input='\0';while(input!='\n'){cin.get(input);switch(input){case 'L': now = now*2; break;case 'R': now = now*2+1; break;}}cout << now << "\n";return 0;}