結果
| 問題 |
No.904 サメトロ
|
| コンテスト | |
| ユーザー |
leaf_1415
|
| 提出日時 | 2019-10-11 21:31:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 290 bytes |
| コンパイル時間 | 396 ms |
| コンパイル使用メモリ | 54,516 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 06:48:08 |
| 合計ジャッジ時間 | 1,410 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 22 |
ソースコード
#include <iostream>
#include <stdio.h>
#define llint long long
using namespace std;
int n;
int a, b;
int main(void)
{
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n;
int x, y;
for(int i = 2; i <= n; i++){
cin >> x >> y;
a += x, b += y;
}
cout << b + 1 << endl;
return 0;
}
leaf_1415