結果
問題 | No.1422 Social Distance in Train |
ユーザー |
![]() |
提出日時 | 2021-03-14 22:29:51 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 149 bytes |
コンパイル時間 | 822 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-06 10:50:57 |
合計ジャッジ時間 | 1,305 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d", &n); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int n; scanf("%d", &n); if(n % 2 == 0){ printf("2\n"); } else{ printf("1\n"); } return 0; }