結果
| 問題 |
No.333 門松列を数え上げ
|
| コンテスト | |
| ユーザー |
A63295
|
| 提出日時 | 2016-01-16 22:59:28 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 88 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 19,712 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 20:15:30 |
| 合計ジャッジ時間 | 599 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class
2 | A,B,C;main(){scanf("%d%d",&A,&B);printf("%d",C=A>B?1999999999-B:B-2);}
| ^
main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘A’ [-Wimplicit-int]
main.c:2:3: warning: type defaults to ‘int’ in declaration of ‘B’ [-Wimplicit-int]
2 | A,B,C;main(){scanf("%d%d",&A,&B);printf("%d",C=A>B?1999999999-B:B-2);}
| ^
main.c:2:5: warning: type defaults to ‘int’ in declaration of ‘C’ [-Wimplicit-int]
2 | A,B,C;main(){scanf("%d%d",&A,&B);printf("%d",C=A>B?1999999999-B:B-2);}
| ^
main.c:2:7: warning: return type defaults to ‘int’ [-Wimplicit-int]
2 | A,B,C;main(){scanf("%d%d",&A,&B);printf("%d",C=A>B?1999999999-B:B-2);}
| ^~~~
main.c: In function ‘main’:
main.c:2:14: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2 | A,B,C;main(){scanf("%d%d",&A,&B);printf("%d",C=A>B?1999999999-B:B-2);}
| ^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
A,B,C;main(){scanf("%d%d",&A,&B);printf("%d",C=A>B?1999999999-B:B-2);}
A63295