結果
| 問題 | No.3603 What Question Number Are We On? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-31 21:23:02 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| + 885µs | |
| コード長 | 870 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-31 21:23:09 |
| 合計ジャッジ時間 | 6,221 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
# coding: utf-8
# AtCoder Competition Template v2.1 SHORT (PyPy 7.3.20 / Python 3.11)
# oj test -c 'C:\VSCode_program\atcoder\contests\.venv-pypy311\Scripts\python.exe maina.py' -d input/a
import sys
# ===== 入出力ヘルパ =====
def input() -> str:
return sys.stdin.readline().rstrip()
def INT() -> int:
return int(input())
def MAP():
return map(int, input().split())
def LIST() -> list[int]:
return list(MAP())
# ==============================================
# =================== main =====================
# ==============================================
def main() -> None:
# ここに解答を書く
Q = INT()
for i in range(Q):
inp = input().split()
if inp[0] == "1":
print(int(inp[1]) + int(inp[2]))
else:
print(i+1)
if __name__ == "__main__":
main()