結果

問題 No.395 永遠の17歳
ユーザー nxterunxteru
提出日時 2017-03-26 13:50:32
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 87 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 27,248 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-20 10:59:20
合計ジャッジ時間 3,063 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 1 ms
4,380 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 1 ms
4,384 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 0 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:5:21: 警告: 条件式内でポインタ型と整数型が適合しません
    5 | printf(a>14?"%d",a-7:"-1");
      |                     ^

ソースコード

diff #

#include <stdio.h>
int main(void){
int a;
scanf("%d",&a);
printf(a>14?"%d",a-7:"-1");
}
0