結果
問題 | No.9005 実行時間/使用メモリテスト(テスト用) |
ユーザー | kuuso1 |
提出日時 | 2015-09-07 01:55:39 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 5,163 bytes |
コンパイル時間 | 773 ms |
コンパイル使用メモリ | 104,704 KB |
実行使用メモリ | 18,560 KB |
最終ジャッジ日時 | 2024-07-19 04:49:00 |
合計ジャッジ時間 | 6,695 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.IO; using System.Linq; using System.Diagnostics; class Test{ public static void Main(){ new Sol().Solve(); } } class Sol{ public void Solve(){ int N=10000000; swStart(); int x=123382149; int y=423852932; int z=387128471; uint ux=123382149; uint uy=423852932; uint uz=387128471; long lx=1233768682149; long ly=4238768652932; long lz=3871768628471; long vx=1233768682149; long vy=4238768652932; long vz=3871768628471; int a=0; Etime("ref start",false); for(int i=0;i<N;i++){ a=a+0; } Etime("ref start"); String Cal=""; Cal="Add"; Etime("",false); for(int i=0;i<N;i++){ z=x+y; } Etime("Int :"+Cal); Etime("",false); for(int i=0;i<N;i++){ uz=ux+uy; } Etime("uInt :"+Cal); Etime("",false); for(int i=0;i<N;i++){ lz=lx+ly; } Etime("Long :"+Cal); Etime("",false); for(int i=0;i<N;i++){ vz=vx+vy; } Etime("uLong:"+Cal); Cal="Sub"; Etime("",false); for(int i=0;i<N;i++){ z=x-y; } Etime("Int :"+Cal); Etime("",false); for(int i=0;i<N;i++){ uz=ux-uy; } Etime("uInt :"+Cal); Etime("",false); for(int i=0;i<N;i++){ lz=lx-ly; } Etime("Long :"+Cal); Etime("",false); for(int i=0;i<N;i++){ vz=vx-vy; } Etime("uLong:"+Cal); Cal="Mul"; Etime("",false); for(int i=0;i<N;i++){ z=x*y; } Etime("Int :"+Cal); Etime("",false); for(int i=0;i<N;i++){ uz=ux*uy; } Etime("uInt :"+Cal); Etime("",false); for(int i=0;i<N;i++){ lz=lx*ly; } Etime("Long :"+Cal); Etime("",false); for(int i=0;i<N;i++){ vz=vx*vy; } Etime("uLong:"+Cal); Cal="Div"; Etime("",false); for(int i=0;i<N;i++){ z=x/y; } Etime("Int :"+Cal); Etime("",false); for(int i=0;i<N;i++){ uz=ux/uy; } Etime("uInt :"+Cal); Etime("",false); for(int i=0;i<N;i++){ lz=lx/ly; } Etime("Long :"+Cal); Etime("",false); for(int i=0;i<N;i++){ vz=vx/vy; } Etime("uLong:"+Cal); Cal="Mod"; Etime("",false); for(int i=0;i<N;i++){ z=x%y; } Etime("Int :"+Cal); Etime("",false); for(int i=0;i<N;i++){ uz=ux%uy; } Etime("uInt :"+Cal); Etime("",false); for(int i=0;i<N;i++){ lz=lx%ly; } Etime("Long :"+Cal); Etime("",false); for(int i=0;i<N;i++){ vz=vx%vy; } Etime("uLong:"+Cal); } Stopwatch sw; //long ltime; long ltick; void swStart(){ sw=new Stopwatch(); sw.Start(); //ltime=0; ltick=0; } void Etime(String s,bool write=true){ /* if(write)Console.WriteLine("{0}:\t{1}\t[ms]\tduration\t{2}\t[ms]\t{3}\t[ticks]", s, sw.ElapsedMilliseconds, sw.ElapsedMilliseconds-ltime, sw.ElapsedTicks-ltick ); */ if(write)Console.WriteLine("{0}:\t{1}\t[ticks]\tduration\t{2}\t[ticks]", s, sw.ElapsedTicks, sw.ElapsedTicks-ltick ); //ltime=sw.ElapsedMilliseconds; ltick=sw.ElapsedTicks; } } /* ref start: 310036 [ticks] duration 306717 [ticks] Int :Add: 723221 [ticks] duration 109011 [ticks] uInt :Add: 1087879 [ticks] duration 364369 [ticks] Long :Add: 1361575 [ticks] duration 273480 [ticks] uLong:Add: 1637724 [ticks] duration 275973 [ticks] Int :Sub: 2001561 [ticks] duration 363669 [ticks] uInt :Sub: 2366189 [ticks] duration 364458 [ticks] Long :Sub: 2640265 [ticks] duration 273900 [ticks] uLong:Sub: 3099817 [ticks] duration 458243 [ticks] Int :Mul: 3451832 [ticks] duration 351845 [ticks] uInt :Mul: 3807885 [ticks] duration 355889 [ticks] Long :Mul: 5264167 [ticks] duration 1456119 [ticks] uLong:Mul: 6638797 [ticks] duration 1374462 [ticks] Int :Div: 9053045 [ticks] duration 2414076 [ticks] uInt :Div: 11105493 [ticks] duration 2052276 [ticks] Long :Div: 15121280 [ticks] duration 4015568 [ticks] uLong:Div: 19083989 [ticks] duration 3962504 [ticks] Int :Mod: 21496702 [ticks] duration 2412548 [ticks] uInt :Mod: 23543017 [ticks] duration 2046150 [ticks] Long :Mod: 27780024 [ticks] duration 4236802 [ticks] uLong:Mod: 31925206 [ticks] duration 4144896 [ticks] */ /* ref start: 34003 [ticks] duration 32102 [ticks] Int :Add: 67855 [ticks] duration 31708 [ticks] uInt :Add: 96135 [ticks] duration 28232 [ticks] Long :Add: 124692 [ticks] duration 28509 [ticks] uLong:Add: 153278 [ticks] duration 28501 [ticks] Int :Sub: 181888 [ticks] duration 28547 [ticks] uInt :Sub: 210437 [ticks] duration 28497 [ticks] Long :Sub: 238878 [ticks] duration 28382 [ticks] uLong:Sub: 267170 [ticks] duration 28226 [ticks] Int :Mul: 295418 [ticks] duration 28185 [ticks] uInt :Mul: 323658 [ticks] duration 28197 [ticks] Long :Mul: 351899 [ticks] duration 28199 [ticks] uLong:Mul: 380125 [ticks] duration 28183 [ticks] Int :Div: 408383 [ticks] duration 28217 [ticks] uInt :Div: 436620 [ticks] duration 28195 [ticks] Long :Div: 465180 [ticks] duration 28494 [ticks] uLong:Div: 493803 [ticks] duration 28542 [ticks] Int :Mod: 522347 [ticks] duration 28492 [ticks] uInt :Mod: 550956 [ticks] duration 28560 [ticks] Long :Mod: 579562 [ticks] duration 28551 [ticks] uLong:Mod: 608109 [ticks] duration 28487 [ticks] */