結果

問題 No.83 最大マッチング
ユーザー testestesttestestest
提出日時 2015-11-14 21:12:16
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 59 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 22,776 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-11 17:44:17
合計ジャッジ時間 814 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 1 ms
4,352 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 0 ms
4,352 KB
testcase_08 AC 1 ms
4,348 KB
testcase_09 AC 1 ms
4,352 KB
testcase_10 AC 1 ms
4,352 KB
testcase_11 AC 1 ms
4,348 KB
testcase_12 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(a){for(scanf("%d",&a);putchar(49+a%2*6),a&=~1,a-=2;);}
 ^~~~
main.c: In function ‘main’:
main.c:1:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:13: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 main(a){for(scanf("%d",&a);putchar(49+a%2*6),a&=~1,a-=2;);}
             ^~~~~
main.c:1:13: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:13: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 main(a){for(scanf("%d",&a);putchar(49+a%2*6),a&=~1,a-=2;);}
             ^~~~~
main.c:1:28: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 main(a){for(scanf("%d",&a);putchar(49+a%2*6),a&=~1,a-=2;);}
                            ^~~~~~~

ソースコード

diff #

main(a){for(scanf("%d",&a);putchar(49+a%2*6),a&=~1,a-=2;);}
0