結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2014-12-16 23:43:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 257 bytes |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 22,912 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 22:02:55 |
| 合計ジャッジ時間 | 851 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <cstdio>
int main()
{
char s[100];
while (fgets(s, 100, stdin)) {
unsigned res=1;
for(int i=0;s[i]>'A';++i) {
res*=2;
if (s[i]=='R') ++res;
}
printf("%u\n", res);
}
}
hogeover30