結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
mono1977
|
| 提出日時 | 2017-02-10 22:24:54 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 270 bytes |
| コンパイル時間 | 1,183 ms |
| コンパイル使用メモリ | 22,016 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-28 05:27:30 |
| 合計ジャッジ時間 | 1,821 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:12:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%d",&temp);
| ^~~~~~~~~~~~~~~~~
ソースコード
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main(){
int sum=0,i,temp;
for(i=0;i<9;i++){
scanf("%d",&temp);
sum+=temp;
}
printf("%d\n",55-sum);
return 0;
}
mono1977