結果
| 問題 |
No.29 パワーアップ
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-08-14 15:20:32 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 81 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 36,160 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-10-24 20:53:58 |
| 合計ジャッジ時間 | 936 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[11],s;main(t){for(gets(a);~scanf("%d",&t);s+=3-(a[t]^=2));s=!printf("%d",s/4);}
| ^
main.c: In function 'main':
main.c:1:30: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | a[11],s;main(t){for(gets(a);~scanf("%d",&t);s+=3-(a[t]^=2));s=!printf("%d",s/4);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | a[11],s;main(t){for(gets(a);~scanf("%d",&t);s+=3-(a[t]^=2));s=!printf("%d",s/4);}
main.c:1:64: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | a[11],s;main(t){for(gets(a);~scanf("%d",&t);s+=3-(a[t]^=2));s=!printf("%d",s/4);}
| ^~~~~~
main.c:1:64: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/ccbOZndR.o: in function `main':
main.c:(.text.startup+0x2d): 警告: the `gets' function is dangerous and should not be used.
ソースコード
a[11],s;main(t){for(gets(a);~scanf("%d",&t);s+=3-(a[t]^=2));s=!printf("%d",s/4);}
testestest