結果
問題 | No.1415 100の倍数かつ正整数(1) |
ユーザー | harurun |
提出日時 | 2021-03-05 21:23:54 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 1,459 bytes |
コンパイル時間 | 273 ms |
コンパイル使用メモリ | 10,780 KB |
実行使用メモリ | 8,352 KB |
最終ジャッジ日時 | 2023-07-29 00:53:34 |
合計ジャッジ時間 | 1,717 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
8,176 KB |
testcase_01 | AC | 16 ms
8,144 KB |
testcase_02 | AC | 16 ms
8,268 KB |
testcase_03 | AC | 16 ms
8,192 KB |
testcase_04 | AC | 16 ms
8,184 KB |
testcase_05 | AC | 16 ms
8,192 KB |
testcase_06 | AC | 16 ms
8,188 KB |
testcase_07 | AC | 16 ms
8,204 KB |
testcase_08 | AC | 16 ms
8,124 KB |
testcase_09 | AC | 16 ms
8,340 KB |
testcase_10 | AC | 16 ms
8,320 KB |
testcase_11 | AC | 17 ms
8,132 KB |
testcase_12 | AC | 16 ms
8,184 KB |
testcase_13 | AC | 17 ms
8,192 KB |
testcase_14 | AC | 16 ms
8,192 KB |
testcase_15 | AC | 16 ms
8,200 KB |
testcase_16 | AC | 16 ms
8,216 KB |
testcase_17 | AC | 16 ms
8,284 KB |
testcase_18 | AC | 16 ms
8,340 KB |
testcase_19 | AC | 16 ms
8,352 KB |
testcase_20 | AC | 17 ms
8,200 KB |
testcase_21 | AC | 16 ms
8,268 KB |
testcase_22 | AC | 16 ms
8,136 KB |
testcase_23 | AC | 16 ms
8,196 KB |
ソースコード
class INPUT: def __init__(self): from sys import argv if argv[-1] in ["./Main.py","prog.py","Main.py"]:#Atcoder:./Main.py,Wandbox:prog.py,yukicoder:Main.py self.l=open(0).read().split()[::-1] else: self.l=open("_input.txt",mode="r").read().split()[::-1] self.length=len(self.l) return def stream(self,k=1,f=int,f2=False): assert(-1<k) m=self.length if m==0 or m<k: raise Exception("There is no input!") elif f!=str: if k==0: self.length=0 return list(map(f,self.l[::-1])) if k==1 and not f2: self.length-=1 return f(self.l.pop()) if k==1 and f2: self.length-=1 return [f(self.l.pop())] ret=[] for _ in [0]*k: ret.append(f(self.l.pop())) self.length-=k return ret else: if k==0: self.length=0 return self.l[::-1] if k==1 and not f2: self.length-=1 return self.l.pop() if k==1 and f2: self.length-=1 return [self.l.pop()] ret=[] for _ in [0]*k: ret.append(self.l.pop()) self.length-=k return ret pin=INPUT().stream """ pin(number[default:1],f[default:int],f2[default:False]) if number==0 -> return left all eclipse 等では_input.txtを使うこと。 listを変数で受け取るとき、必ずlistをTrueにすること。 """ def main(): N=pin(1) n=max(N,0) print(n//100) return main()