結果
| 問題 | No.3603 What Question Number Are We On? |
| コンテスト | |
| ユーザー |
まぬお
|
| 提出日時 | 2026-07-31 21:21:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| + 537µs | |
| コード長 | 922 bytes |
| 記録 | |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 95,976 KB |
| 実行使用メモリ | 79,616 KB |
| 最終ジャッジ日時 | 2026-07-31 21:22:02 |
| 合計ジャッジ時間 | 5,502 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
from collections import deque, defaultdict, Counter
from bisect import bisect_left, bisect_right, insort
from itertools import permutations, combinations, groupby
from heapq import heappop, heappush
import math, sys
input = lambda: sys.stdin.readline().rstrip("\r\n")
def printl(li, sep=" "): print(sep.join(map(str, li)))
def yn(flag): print(Yes if flag else No)
_int = lambda x: int(x)-1
MOD = 998244353 #10**9+7
INF = 1<<60
Yes, No = "Yes", "No"
def ctypes(li, types):
assert len(li) == len(types)
return [t(a) for a, t in zip(li, types)]
def qinput(*types, indexed = 1):
li = input().split()
t = int(li[0])
if len(li) == 1: return t, None
elif len(li) == 2: return t, types[t-indexed][0](li[1])
else: return t, ctypes(li[1:], types[t-indexed])
for i in range(int(input())):
t, qi = qinput([int, int], [])
if t == 1:
a, b = qi
print(a+b)
else:
print(i+1)
まぬお