結果

問題 No.1070 Missing a space
ユーザー kkkk97368086
提出日時 2021-11-24 22:02:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 1,567 ms
コンパイル使用メモリ 165,948 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 07:53:42
合計ジャッジ時間 2,008 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin >> s;
    int l = s.size();
    
    cout << (l-1)*(l-2)/2 << endl;
}
0