結果

問題 No.1591 Two Digits
コンテスト
ユーザー stoq
提出日時 2021-08-02 14:47:22
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 385 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,876 ms
コンパイル使用メモリ 337,460 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-06-22 08:17:31
合計ジャッジ時間 7,431 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#include "testlib.h"
#include <sys/wait.h>
using namespace std;

int main(int argc, char *argv[])
{
  pid_t pid;
  int status;
  if (pid = fork() == 0)
  {
    registerValidation(argc, argv);
    inf.readString("[1-9][0-9]");
    inf.readEof();
    exit(0);
  }
  wait(&status);
  if (WEXITSTATUS(status) == 0)
    cout << "Yes\n";
  else
    cout << "No\n";
}
0