結果
問題 | No.104 国道 |
ユーザー |
![]() |
提出日時 | 2017-06-27 20:44:34 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 102 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 13:36:23 |
合計ジャッジ時間 | 777 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){ | ^~~~
ソースコード
#include<stdio.h>main(){char S[31];int i;char c;for(i = 0;(c=getchar()) !='\n';i++){S[i] = c;}S[i] = '\0';int point = 1;for(i = 0;S[i] != '\0';i++){point = S[i]=='L'?point*2:point*2+1;}printf("%d\n",point);}