結果
問題 | No.299 蟻本が読めない |
ユーザー |
![]() |
提出日時 | 2015-12-24 16:33:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 46 ms / 1,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 2,765 ms |
コンパイル使用メモリ | 73,136 KB |
実行使用メモリ | 36,736 KB |
最終ジャッジ日時 | 2024-09-18 22:43:10 |
合計ジャッジ時間 | 3,366 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
import java.io.*; public class Test { public static void main(String args[]) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long N = Long.parseLong(br.readLine()); int antfirst = 316; int antsecond = 368; long antN = antfirst + (antsecond - antfirst)*(N-1); System.out.println(antN); } }