結果
問題 | No.395 永遠の17歳 |
ユーザー |
![]() |
提出日時 | 2016-09-04 01:27:14 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 02:07:47 |
合計ジャッジ時間 | 616 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d", &age); | ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int age; scanf("%d", &age); if(age < 15){ printf("-1"); }else{ int x; x = age - 7; printf("%d", x); } return 0; }