結果

問題 No.1616 Joke
ユーザー satonakatakumisatonakatakumi
提出日時 2021-08-02 12:02:00
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 709 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 32,096 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 20:47:24
合計ジャッジ時間 985 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 1 ms
4,352 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 1 ms
4,352 KB
testcase_09 AC 1 ms
4,352 KB
testcase_10 AC 1 ms
4,352 KB
testcase_11 AC 1 ms
4,348 KB
testcase_12 AC 1 ms
4,352 KB
testcase_13 AC 1 ms
4,348 KB
testcase_14 AC 2 ms
4,352 KB
testcase_15 AC 1 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>

bool is_space(int ch) { return ch == ' ' || ch == '\n' || ch == '\t' || ch == '\r' || ch == '\f' || ch == '\v'; }
bool is_digit(int ch) { return ch == '1' || ch == '2' || ch == '3' || ch == '4' || ch == '5' || ch == '6' || ch == '7' || ch == '8' || ch == '9' || ch == '0'; }
long long int read_int() {
  long long int sgn = 1, ret = 0;
  int ch = getchar_unlocked();
  while (is_space(ch)) ch = getchar_unlocked();
  if (ch == '-') {
    sgn = -1;
    ch = getchar_unlocked();
  }
  for (; is_digit(ch); ch = getchar_unlocked()) ret = (ret * 10) + (ch - '0');
  ungetc(ch, stdin);
  return sgn * ret;
}

int main() {
    long long int i = read_int();
    printf("%ld\n", i);
    return 0;
}
0