結果
問題 |
No.791 うし数列
|
ユーザー |
|
提出日時 | 2019-07-29 01:02:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 1,825 ms |
コンパイル使用メモリ | 191,652 KB |
最終ジャッジ日時 | 2025-01-07 09:53:15 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 8 WA * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; if (s[0] != '!') { puts("-1"); return 0; } for (int i = 1; i < s.size(); i++) { if (s[i] != '3') { puts("-1"); return 0; } } cout << s.size() - 1 << endl; return 0; }