結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー maimai
提出日時 2017-08-01 09:10:33
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 28,928 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-19 13:22:01
合計ジャッジ時間 766 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 0 ms
5,376 KB
testcase_04 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:5:1: warning: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~

ソースコード

diff #

#include <stdio.h>
#define wt(s) printf("%d",s)

int n;
main(){
n = getchar()-'0';
if (n==1) wt(!(getchar()==10 && getchar()==13));
if (n==2) wt(!(getchar()==13));
if (n==3) wt(!(getchar()==10));
if (n==4) wt(0);
}
0