Submission #244456
Source Code Expand
import std.stdio, std.conv, std.string, std.typecons; import std.algorithm, std.array, std.range, std.math; import std.container, std.datetime; void main() { auto n = readln.chomp.to!long; long ans; if (n % 2) { ans = 3 + (n-1) / 2; } else { ans = n / 2; } ans.writeln; }
Submission Info
Submission Time | |
---|---|
Task | B - 3歩進んで2歩下がる |
User | Fuh |
Language | D (DMD 2.060) |
Score | 100 |
Code Size | 296 Byte |
Status | AC |
Exec Time | 26 ms |
Memory | 932 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_1000000000000000.txt, test_111723.txt, test_130146966901509.txt, test_161925824289921.txt, test_35454587585157.txt, test_5.txt, test_5540.txt, test_6021.txt, test_805.txt, test_845717671383532.txt, test_865385763670868.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 25 ms | 808 KB |
sample_02.txt | AC | 23 ms | 804 KB |
test_1.txt | AC | 23 ms | 924 KB |
test_1000000000000000.txt | AC | 25 ms | 932 KB |
test_111723.txt | AC | 25 ms | 804 KB |
test_130146966901509.txt | AC | 23 ms | 804 KB |
test_161925824289921.txt | AC | 25 ms | 800 KB |
test_35454587585157.txt | AC | 23 ms | 804 KB |
test_5.txt | AC | 26 ms | 800 KB |
test_5540.txt | AC | 25 ms | 928 KB |
test_6021.txt | AC | 24 ms | 808 KB |
test_805.txt | AC | 24 ms | 800 KB |
test_845717671383532.txt | AC | 23 ms | 804 KB |
test_865385763670868.txt | AC | 25 ms | 800 KB |