結果
問題 | No.530 年齢って毎年変わるし覚えるの難しいよね |
ユーザー |
|
提出日時 | 2017-07-03 15:03:01 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 86 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 12:21:43 |
合計ジャッジ時間 | 1,183 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 48 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:2:22: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2 | int main(void){int y;scanf("%d",&y);printf("%d\n",2017-y);return 0;} | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){int y;scanf("%d",&y);printf("%d\n",2017-y);return 0;}