結果

問題 No.395 永遠の17歳
ユーザー alpha_virginis
提出日時 2016-07-16 13:46:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 377 bytes
コンパイル時間 1,777 ms
コンパイル使用メモリ 166,524 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-05 01:11:51
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#ifdef CHECK_

int main() {
  auto x = get<int>();
  auto y = x < 15 ? -1 : x - 7;
  put(y);
  
  return 0;
}

#else

template<typename T>
T get() { return 0; }
template<>
int get() { int x; scanf("%d", &x); return x; }

template<typename T>
void put(T x) {}
template<>
void put(int x) { printf("%d\n", x); }


#define CHECK_
#include __FILE__
#endif

0