結果
| 問題 |
No.1499 羊が、何匹だっけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-13 16:49:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-24 21:40:27 |
| 合計ジャッジ時間 | 1,139 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
T = int(input())
words = [input() for _ in range(T)]
# print(words)
# words = [str(int(x)+1) if i == 2 else x for i, x in enumerate(words.split())]
results = []
for word in words:
tmp = []
for i, x in enumerate(word.split()):
if i == 2:
tmp.append(str(int(x) + 1))
else:
tmp.append(x)
results.append(tmp)
# print(results)
for x in results:
print(" ".join(x))