結果
問題 |
No.791 うし数列
|
ユーザー |
|
提出日時 | 2019-06-29 16:12:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 418 ms |
コンパイル使用メモリ | 56,036 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-02 05:35:10 |
合計ジャッジ時間 | 1,186 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 1 |
ソースコード
#include <cstdio> #include <string> #include <algorithm> char buf [102]; int main() { scanf("%s", buf); std::string s = buf; printf("%d\n", s.length() > 1 && std::all_of(++s.begin(), s.end(), [](const char &c){ return c == '3'; }) ? int(s.length() - 1) : -1); }