結果
| 問題 | No.745 letinopia raoha |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2018-10-19 23:43:55 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 28,740 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:18:29 |
| 合計ジャッジ時間 | 620 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 8 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
3 | scanf("%d%d%d%d",&a,&b,&c,&d);
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | int a,b,c,d;
main.c:11:17: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
11 | printf("%d",ans);
| ^~~~~~
main.c:11:17: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
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);
}
}
testestest