Skip to content

Commit 9775f64

Browse files
Show timelimit on sources
1 parent b59f3d4 commit 9775f64

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/AtCoderLibrary/Command/New/Generator/Source.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ struct Source: Generator {
66
"""
77
// \(problem.context.alphabet) - \(problem.name)
88
// \(problem.url)
9+
// 実行制限時間: \(Double(problem.timeLimit)/1000) sec
910
import Foundation
1011
1112
"""

Tests/AtCoderLibraryTests/Command/New/Generator/SourceTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class SourceTests: XCTestCase {
1616
let expected = """
1717
// A - task1
1818
// https://example.com/p_1
19+
// 実行制限時間: 1.0 sec
1920
import Foundation
2021
2122
"""

0 commit comments

Comments
 (0)