結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-08-06 03:45:32 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 143 bytes |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 03:08:52 |
| 合計ジャッジ時間 | 879 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d%d%d%d%d%d",&a,&b,&c,&e,&d,&e);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
int a,b,c,d,e;
scanf("%d%d%d%d%d%d",&a,&b,&c,&e,&d,&e);
d=d>b?d-b:0;a+=c+d<e?c+d:e;
printf("%d",a-d);
return 0;
}
testestest