結果
| 問題 | No.149 碁石の移動 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-06 03:45:32 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 727µs | |
| コード長 | 143 bytes |
| 記録 | |
| コンパイル時間 | 42 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-24 00:41:41 |
| 合計ジャッジ時間 | 1,742 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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