結果
| 問題 |
No.1108 移調
|
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2021-05-01 20:24:33 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 19,968 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 03:40:06 |
| 合計ジャッジ時間 | 979 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d%d", &n, &h);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:9:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d", &t);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
int n, h, t;
int i;
scanf("%d%d", &n, &h);
for(i = 0;i < n;i++){
scanf("%d", &t);
printf("%d", t + h);
if(i == n - 1){
printf("\n");
}
else{
printf(" ");
}
}
return 0;
}
suppy193