結果
問題 | No.2350 Four Seasons |
ユーザー |
![]() |
提出日時 | 2025-03-17 09:52:36 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 354 ms |
コンパイル使用メモリ | 24,448 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-17 09:52:38 |
合計ジャッジ時間 | 1,187 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&season); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void){ int season = 0; scanf("%d",&season); if(season == 3 || season == 4 || season == 5 ){ printf("spring"); }else if(season == 6 || season == 7 || season == 8 ){ printf("summer"); }else if(season == 9 || season == 10 || season == 11 ){ printf("fall"); }else{ printf("winter"); } }