結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-01-17 19:08:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 451 ms |
| コンパイル使用メモリ | 58,492 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-24 06:50:22 |
| 合計ジャッジ時間 | 961 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:12: warning: ‘N’ is used uninitialized [-Wuninitialized]
9 | while(N--){
| ~^~
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
int x,y,N,sum=0;
while(N--){
cin >> x;
sum += x;
}
cin >> y;
cout << x-y;
return 0;
}
focus