結果
| 問題 | No.3603 What Question Number Are We On? |
| コンテスト | |
| ユーザー |
zenet10d
|
| 提出日時 | 2026-08-13 21:41:51 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 364µs | |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 1,651 ms |
| コンパイル使用メモリ | 207,968 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-13 21:41:55 |
| 合計ジャッジ時間 | 3,700 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
int main(){
int n ; cin >> n ;
int dem = 0;
while(n--){
int x ; cin >> x ;
dem++;
if(x == 1){
ll y , z ; cin >> y >> z ;
cout << y + z << endl;
}
else cout << dem << endl;
}
}
zenet10d