結果
問題 |
No.369 足し間違い
|
ユーザー |
![]() |
提出日時 | 2023-06-01 09:14:10 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 1,495 ms |
コンパイル使用メモリ | 27,392 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 14:35:12 |
合計ジャッジ時間 | 1,025 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
#include <stdio.h> int main() { int N; scanf("%d", &N); int sum = 0; for (int i = 0; i < N; i++) { int input; scanf("%d", &input); sum += input; } int yuki; scanf("%d", &yuki); printf("%d", (sum - yuki)); return 0; }