結果
問題 | No.104 国道 |
ユーザー | トミー |
提出日時 | 2024-01-16 00:27:45 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 2,220 ms |
コンパイル使用メモリ | 200,816 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-28 02:25:29 |
合計ジャッジ時間 | 2,951 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; if(!(cin>>s)){ cout<<1<<endl; } else{ for(auto& i:s){ if(i=='R'){ i='1'; } else{ i='0'; } } } int n=stoi('1'+s,nullptr,2); cout<<n<<endl; //system("pause"); }