結果

問題 No.745 letinopia raoha
ユーザー testestesttestestest
提出日時 2018-10-19 23:43:55
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 751 ms
コンパイル使用メモリ 27,284 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-12 02:34:48
合計ジャッジ時間 1,194 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 0 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 AC 0 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:3:9: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    3 |         scanf("%d%d%d%d",&a,&b,&c,&d);
      |         ^~~~~
main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | int a,b,c,d;
main.c:3:9: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%d%d%d%d",&a,&b,&c,&d);
      |         ^~~~~
main.c:3:9: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:5:17: 警告: 関数 ‘puts’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    5 |                 puts("Impossible");
      |                 ^~~~
main.c:5:17: 備考: include ‘<stdio.h>’ or provide a declaration of ‘puts’
main.c:11:17: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
   11 |                 printf("%d",ans);
      |                 ^~~~~~
main.c:11:17: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:11:17: 警告: 組み込み関数 ‘printf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch]
main.c:11:17: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

int a,b,c,d;
int main(){
	scanf("%d%d%d%d",&a,&b,&c,&d);
	if(d>=10){
		puts("Impossible");
	}else{
		puts("Possible");
		int ans=
		+((1<<((a+b)/100))-1)*10000+(((a+b)%100)<<((a+b)/100))*100
		-((1<<(   b /100))-1)* 5000-((   b %100)<<(   b /100))* 50;
		printf("%d",ans);
	}
}
0