結果
問題 | No.35 タイパー高橋 |
ユーザー |
![]() |
提出日時 | 2015-07-07 23:08:21 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 277 ms / 5,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 2,913 ms |
コンパイル使用メモリ | 75,884 KB |
実行使用メモリ | 48,996 KB |
最終ジャッジ日時 | 2024-07-08 01:33:08 |
合計ジャッジ時間 | 4,600 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
import java.util.Scanner; public class No_035 { Scanner sc = new Scanner(System.in); void run() { int N = sc.nextInt(); int y = 0; int n = 0; while (N-- > 0) { double T = sc.nextDouble(); double d = 12 * T / 1000; int L = sc.next().length(); if (d >= L) { y += L; } else { y += (int) d; n += L - (int) d; } } System.out.println(y + " " + n); } public static void main(String[] args) { new No_035().run(); } }