結果
| 問題 |
No.1070 Missing a space
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-24 08:48:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 285 bytes |
| コンパイル時間 | 1,911 ms |
| コンパイル使用メモリ | 174,616 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-24 17:45:54 |
| 合計ジャッジ時間 | 2,326 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string S;
cin>>S;
int N=S.size();
set<pair<string,string>> A;
for(int i=1;i<S.size();i++){
if(S[i]!='0'){
A.insert({S.substr(0,i),S.substr(i)});
}
}
cout<<A.size()<<endl;
}